-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathconfig.h
More file actions
43 lines (39 loc) · 886 Bytes
/
config.h
File metadata and controls
43 lines (39 loc) · 886 Bytes
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
#ifndef GPUARRAY_CONFIG
#define GPUARRAY_CONFIG
/* The following included file should have been generated by CMake. */
#include <gpuarray/abi_version.h>
#define GPUARRAY_API_VERSION 2
#ifdef GPUARRAY_SHARED
#ifdef _WIN32
#ifdef GPUARRAY_BUILDING_DLL
#define GPUARRAY_PUBLIC __declspec(dllexport)
#else
#define GPUARRAY_PUBLIC __declspec(dllimport)
#endif
#else
#if __GNUC__ >= 4
#define GPUARRAY_PUBLIC __attribute__((visibility ("default")))
#else
#error "Don't know how to export symbols on this platform"
#endif
#endif
#else
#define GPUARRAY_PUBLIC
#endif
#ifdef _MSC_VER
#include <stddef.h>
#ifndef inline
#define inline __inline
#endif
#if _MSC_VER < 1600
#include <gpuarray/wincompat/stdint.h>
#else
#include <stdint.h>
#endif
#define ssize_t intptr_t
#define SSIZE_MAX INTPTR_MAX
#else
#include <sys/types.h>
#include <stdint.h>
#endif
#endif