macro.h 473 B

123456789101112131415161718192021222324252627
  1. #ifndef VIRTUALMATH_MACRO_H
  2. #define VIRTUALMATH_MACRO_H
  3. #include <stdio.h>
  4. #include <string.h>
  5. #include <stdlib.h>
  6. #include <stdarg.h>
  7. #include <sys/stat.h>
  8. #include <getopt.h>
  9. #include <unistd.h>
  10. #include <ctype.h>
  11. #include <setjmp.h>
  12. #include <signal.h>
  13. #include <unistd.h>
  14. #ifdef __linux__
  15. #include <dlfcn.h>
  16. #else
  17. #include "win/dlfcn_win32.h"
  18. #endif
  19. // 布尔逻辑的定义
  20. #define bool int
  21. #define true 1
  22. #define false 0
  23. #define NUL 0
  24. #endif //VIRTUALMATH_MACRO_H