fixed some warnings
Minclude/cutils/misc.h
| @@ -2,8 +2,12 @@ | |||
|---|---|---|---|
| 2 | 2 | #define MISC_H | |
| 3 | 3 | ||
| 4 | 4 | #ifdef __unix__ | |
| 5 | - | #define _BSD_SOURCE | |
| 6 | - | #define _DEFAULT_SOURCE | |
| 5 | + | #ifndef _BSD_SOURCE | |
| 6 | + | #define _BSD_SOURCE 1 | |
| 7 | + | #endif | |
| 8 | + | #ifndef _DEFAULT_SOURCE | |
| 9 | + | #define _DEFAULT_SOURCE 1 | |
| 10 | + | #endif | |
| 7 | 11 | #include <unistd.h> | |
| 8 | 12 | #endif | |
| 9 | 13 | #ifdef _WIN32 | |