Drop main() prototype. Syncs with NetBSD-8
[minix.git] / minix / llvm / include / common / util / util_def.h
blobeff7a4bc84e9383683d8665a6549a9cd88d8cee8
2 #ifndef _GNU_SOURCE
3 #define _GNU_SOURCE 1
4 #endif
6 #ifndef __USE_GNU
7 #define __USE_GNU 1
8 #endif
10 #ifndef UNIX_PATH_MAX
11 #define UNIX_PATH_MAX 108
12 #endif
14 #ifndef PAGE_SIZE
15 #define PAGE_SIZE 4096
16 #endif
18 #ifndef MIN_MMAP_ADDR
19 #define MIN_MMAP_ADDR ((void*)(PAGE_SIZE*100))
20 #endif
22 #ifndef _UTIL_PRINTF
23 #define _UTIL_PRINTF printf
24 #endif
26 #ifndef _UTIL_PTHREAD_CREATE
27 #define _UTIL_PTHREAD_CREATE pthread_create
28 #endif
30 #ifndef _UTIL_PTHREAD_JOIN
31 #define _UTIL_PTHREAD_JOIN pthread_join
32 #endif
34 #ifndef _UTIL_PTHREAD_CANCEL
35 #define _UTIL_PTHREAD_CANCEL pthread_cancel
36 #endif
38 #ifndef _UTIL_PTHREAD_SIGMASK
39 #define _UTIL_PTHREAD_SIGMASK pthread_sigmask
40 #endif
42 #ifndef _UTIL_MALLOC
43 #define _UTIL_MALLOC malloc
44 #endif
46 #ifndef _UTIL_CALLOC
47 #define _UTIL_CALLOC calloc
48 #endif
50 #ifndef _UTIL_FREE
51 #define _UTIL_FREE free
52 #endif