File: libyasm-stdint.h.cmake

package info (click to toggle)
yasm 1.3.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,880 kB
  • sloc: asm: 74,423; ansic: 53,055; python: 9,927; sh: 5,276; xml: 1,617; makefile: 214; pascal: 95; sed: 16
file content (46 lines) | stat: -rw-r--r-- 807 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef YASM_STDINT_H
#define YASM_STDINT_H

#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

#ifndef BUILD_SHARED_LIBS
#cmakedefine BUILD_SHARED_LIBS
#define BUILD_SHARED_LIBS_UNDEF
#endif

#ifndef YASM_LIB_DECL
# if defined(BUILD_SHARED_LIBS) && defined(_MSC_VER)
#  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

#undef HAVE_STDINT_H
#ifdef BUILD_SHARED_LIBS_UNDEF
#undef BUILD_SHARED_LIBS
#undef BUILD_SHARED_LIBS_UNDEF
#endif

#endif