libyasm-stdint.h 802 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef YASM_STDINT_H
  2. #define YASM_STDINT_H
  3. #define HAVE_STDINT_H
  4. #ifdef HAVE_STDINT_H
  5. #include <stdint.h>
  6. #elif defined(_MSC_VER)
  7. #ifndef _UINTPTR_T_DEFINED
  8. #ifdef _WIN64
  9. #include <vadefs.h>
  10. #else
  11. typedef unsigned long uintptr_t;
  12. #endif
  13. #define _UINTPTR_T_DEFINED
  14. #endif
  15. #else
  16. typedef unsigned long uintptr_t;
  17. #endif
  18. #ifndef BUILD_SHARED_LIBS
  19. /* #undef BUILD_SHARED_LIBS */
  20. #define BUILD_SHARED_LIBS_UNDEF
  21. #endif
  22. #ifndef YASM_LIB_DECL
  23. # if defined(BUILD_SHARED_LIBS) && defined(_MSC_VER)
  24. # ifdef YASM_LIB_SOURCE
  25. # define YASM_LIB_DECL __declspec(dllexport)
  26. # else
  27. # define YASM_LIB_DECL __declspec(dllimport)
  28. # endif
  29. # else
  30. # define YASM_LIB_DECL
  31. # endif
  32. #endif
  33. #undef HAVE_STDINT_H
  34. #ifdef BUILD_SHARED_LIBS_UNDEF
  35. #undef BUILD_SHARED_LIBS
  36. #undef BUILD_SHARED_LIBS_UNDEF
  37. #endif
  38. #endif