fix obvious DEBUG inversion, spit out warning on stderr

This commit is contained in:
Riccardo Mottola 2018-08-07 16:50:33 +02:00
parent 441f13828d
commit 16ef46642b

View file

@ -42,8 +42,8 @@
typedef int pthread_spinlock_t;
int pthread_spin_init(pthread_spinlock_t *lock, int pshared)
{
#if !(DEBUG)
printf("NSThread.m: Warning this platform does not support spin locks - init.\n");
#if DEBUG
fprintf(stderr,"NSThread.m: Warning this platform does not support spin locks - init.\n");
#endif
return 0;
}