forked from Theano/libgpuarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.h
More file actions
38 lines (35 loc) · 779 Bytes
/
config.h
File metadata and controls
38 lines (35 loc) · 779 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
#ifndef GPUARRAY_CONFIG
#define GPUARRAY_CONFIG
#ifdef GPUARRAY_SHARED
#ifdef _WIN32
#ifdef GPUARRAY_BUILDING_DLL
#define GPUARRAY_PUBLIC __declspec(dllexport)
#else
#define GPUARRAY_PUBLIC __declspec(dllimport)
#endif
#define GPUARRAY_LOCAL
#else
#if __GNUC__ >= 4
#define GPUARRAY_PUBLIC __attribute__((visibility ("default")))
#define GPUARRAY_LOCAL __attribute__((visibility ("hidden")))
#else
#define GPUARRAY_PUBLIC
#define GPUARRAY_LOCAL
#endif
#endif
#else
#define GPUARRAY_PUBLIC
#define GPUARRAY_LOCAL
#endif
#ifdef _MSC_VER
#include <stddef.h>
#if _MSC_VER < 1600
#include <gpuarray/wincompat/stdint.h>
#endif
#define ssize_t intptr_t
#define SSIZE_MAX INTPTR_MAX
#else
#include <sys/types.h>
#include <stdint.h>
#endif
#endif