… | |
… | |
2 | |
2 | |
3 | #include "EXTERN.h" |
3 | #include "EXTERN.h" |
4 | #include "perl.h" |
4 | #include "perl.h" |
5 | #include "XSUB.h" |
5 | #include "XSUB.h" |
6 | |
6 | |
|
|
7 | #define ECB_NO_THREADS 1 |
|
|
8 | #define ECB_NO_LIBM 1 |
7 | #include "ecb.h"//D |
9 | #include "ecb.h" |
8 | |
10 | |
9 | #define X_STACKSIZE sizeof (void *) * 512 * 1024 // 2-4mb should be enough, really |
11 | #define X_STACKSIZE sizeof (void *) * 512 * 1024 // 2-4mb should be enough, really |
10 | #include "xthread.h" |
12 | #include "xthread.h" |
11 | #include "schmorp.h" |
13 | #include "schmorp.h" |
12 | |
14 | |
… | |
… | |
46 | #endif |
48 | #endif |
47 | |
49 | |
48 | #if _WIN32 |
50 | #if _WIN32 |
49 | #include CLHDR(cl_d3d10.h) |
51 | #include CLHDR(cl_d3d10.h) |
50 | #if CL_VERSION_1_2 |
52 | #if CL_VERSION_1_2 |
51 | #include CLHDR<cl_d3d11.h> |
53 | #include CLHDR(cl_d3d11.h) |
52 | #endif |
54 | #endif |
53 | #include CLHDR<cl_dx9_media_sharing.h.h> |
55 | #include CLHDR(cl_dx9_media_sharing.h) |
54 | #endif |
56 | #endif |
55 | |
57 | |
56 | #ifndef CL_VERSION_1_2 |
58 | #ifndef CL_VERSION_1_2 |
57 | #undef PREFER_1_1 |
59 | #undef PREFER_1_1 |
58 | #define PREFER_1_1 1 |
60 | #define PREFER_1_1 1 |