2008-05-23 06:46:51 +00:00
|
|
|
#ifndef YASM_STDINT_H
|
|
|
|
|
#define YASM_STDINT_H
|
|
|
|
|
|
2008-05-22 09:08:03 +00:00
|
|
|
#cmakedefine HAVE_STDINT_H
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_STDINT_H
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#elif defined(_MSC_VER)
|
|
|
|
|
|
|
|
|
|
#ifndef _UINTPTR_T_DEFINED
|
|
|
|
|
#ifdef _WIN64
|
|
|
|
|
#include <vadefs.h>
|
|
|
|
|
#else
|
|
|
|
|
typedef unsigned long uintptr_t;
|
|
|
|
|
#endif
|
|
|
|
|
#define _UINTPTR_T_DEFINED
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
typedef unsigned long uintptr_t;
|
|
|
|
|
#endif
|
|
|
|
|
|
2014-08-10 21:38:48 -07:00
|
|
|
#ifndef BUILD_SHARED_LIBS
|
|
|
|
|
#cmakedefine BUILD_SHARED_LIBS
|
|
|
|
|
#define BUILD_SHARED_LIBS_UNDEF
|
|
|
|
|
#endif
|
|
|
|
|
|
2008-05-23 06:46:51 +00:00
|
|
|
#ifndef YASM_LIB_DECL
|
2023-05-13 09:36:53 +05:30
|
|
|
# if defined(BUILD_SHARED_LIBS) && defined(_WIN32)
|
2008-05-23 06:46:51 +00:00
|
|
|
# ifdef YASM_LIB_SOURCE
|
|
|
|
|
# define YASM_LIB_DECL __declspec(dllexport)
|
|
|
|
|
# else
|
|
|
|
|
# define YASM_LIB_DECL __declspec(dllimport)
|
|
|
|
|
# endif
|
|
|
|
|
# else
|
|
|
|
|
# define YASM_LIB_DECL
|
|
|
|
|
# endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2008-05-22 09:08:03 +00:00
|
|
|
#undef HAVE_STDINT_H
|
2014-08-10 21:38:48 -07:00
|
|
|
#ifdef BUILD_SHARED_LIBS_UNDEF
|
|
|
|
|
#undef BUILD_SHARED_LIBS
|
|
|
|
|
#undef BUILD_SHARED_LIBS_UNDEF
|
|
|
|
|
#endif
|
2008-05-23 06:46:51 +00:00
|
|
|
|
|
|
|
|
#endif
|