macro.h 622 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef VIRTUALMATH_MACRO_H
  2. #define VIRTUALMATH_MACRO_H
  3. #include <stdio.h>
  4. #include "errno.h"
  5. #include <math.h>
  6. #include <string.h>
  7. #include <stdlib.h>
  8. #include <stdarg.h>
  9. #include <sys/stat.h>
  10. #include <ctype.h>
  11. #include <setjmp.h>
  12. #include <signal.h>
  13. #include <wchar.h>
  14. #include <wctype.h>
  15. #include <locale.h>
  16. #include <getopt.h>
  17. #include <unistd.h>
  18. #include <ffi.h>
  19. #ifdef __linux__
  20. #include <dlfcn.h>
  21. #else
  22. #include <windows.h>
  23. #include "win/dlfcn_win32.h"
  24. #endif
  25. // 布尔逻辑的定义
  26. #define bool int
  27. #define true 1
  28. #define false 0
  29. #define NUL ((char)0)
  30. #define WNUL ((wchar_t)0)
  31. #endif //VIRTUALMATH_MACRO_H