diff --git a/Source/NSLock.m b/Source/NSLock.m index 26d9d98fe..e06f5dcc3 100644 --- a/Source/NSLock.m +++ b/Source/NSLock.m @@ -23,6 +23,7 @@ #include #include +#include // NSLock class // Simplest lock for protecting critical sections of code @@ -36,7 +37,7 @@ // Allocate the mutex from the runtime mutex = objc_mutex_allocate(); - NSAssertParameter (mutex); + NSParameterAssert (mutex); return self; }