buildlib: supply -fPIC or -fpic if supported
[blocksruntime.git] / testprefix.h
blobfc0278d11a847e5eee3b4d6a5f6878e23f08ec03
1 #undef __APPLE_CC__
2 #define __APPLE_CC__ 5627
3 #define _BSD_SOURCE
4 #include <stdlib.h>
5 #include <stdio.h>
6 #ifdef _WIN32
7 #define random() rand()
8 #else /* !_WIN32 */
9 #ifdef __linux__
10 #undef __block
11 #endif
12 #include <unistd.h>
13 #ifdef __linux__
14 #define __block __attribute__((__blocks__(byref)))
15 #endif
16 #include <sys/wait.h>
17 #endif /* !_WIN32 */