Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 38 lines (30 sloc) 0.58 kb
eb7b1ad @PeterJohnson Enable DLL/plugin builds with cmake on Windows.
PeterJohnson authored
1 #ifndef YASM_STDINT_H
2 #define YASM_STDINT_H
3
b7f2fbc @PeterJohnson Add cmake build infrastructure.
PeterJohnson authored
4 #cmakedefine HAVE_STDINT_H
5
6 #ifdef HAVE_STDINT_H
7 #include <stdint.h>
8 #elif defined(_MSC_VER)
9
10 #ifndef _UINTPTR_T_DEFINED
11 #ifdef _WIN64
12 #include <vadefs.h>
13 #else
14 typedef unsigned long uintptr_t;
15 #endif
16 #define _UINTPTR_T_DEFINED
17 #endif
18
19 #else
20 typedef unsigned long uintptr_t;
21 #endif
22
eb7b1ad @PeterJohnson Enable DLL/plugin builds with cmake on Windows.
PeterJohnson authored
23 #ifndef YASM_LIB_DECL
24 # ifdef _MSC_VER
25 # ifdef YASM_LIB_SOURCE
26 # define YASM_LIB_DECL __declspec(dllexport)
27 # else
28 # define YASM_LIB_DECL __declspec(dllimport)
29 # endif
30 # else
31 # define YASM_LIB_DECL
32 # endif
33 #endif
34
b7f2fbc @PeterJohnson Add cmake build infrastructure.
PeterJohnson authored
35 #undef HAVE_STDINT_H
eb7b1ad @PeterJohnson Enable DLL/plugin builds with cmake on Windows.
PeterJohnson authored
36
37 #endif
Something went wrong with that request. Please try again.