Unified · Split
| @@ -47,6 +47,9 @@ · 46 unmodified lines | |||
| 47 | #define inline __inline | 47 | #define inline __inline |
| 48 | #define inp next_inp | 48 | #define inp next_inp |
| 49 | #define dlclose FreeLibrary | 49 | #define dlclose FreeLibrary |
| 50 | #ifdef _MSC_VER | ||
| 51 | #define __aligned(n) __declspec(align(n)) | ||
| 52 | #endif | ||
| 50 | #ifdef _WIN64 | 53 | #ifdef _WIN64 |
| 51 | #define uplong unsigned long long | 54 | #define uplong unsigned long long |
| 52 | #endif | 55 | #endif |
| @@ -65,6 +68,10 @@ · 12 unmodified lines | |||
| 65 | #define uplong unsigned long | 68 | #define uplong unsigned long |
| 66 | #endif | 69 | #endif |
| 67 | 70 | ||
| 71 | #ifndef __aligned | ||
| 72 | #define __aligned(n) __attribute__((aligned(n))) | ||
| 73 | #endif | ||
| 74 | |||
| 68 | #ifndef PAGESIZE | 75 | #ifndef PAGESIZE |
| 69 | #define PAGESIZE 4096 | 76 | #define PAGESIZE 4096 |
| 70 | #endif | 77 | #endif |
| @@ -473,6 +480,9 @@ struct TCCState { · 402 unmodified lines | |||
| 473 | void *error_opaque; | 480 | void *error_opaque; |
| 474 | void (*error_func)(void *opaque, const char *msg); | 481 | void (*error_func)(void *opaque, const char *msg); |
| 475 | int error_set_jmp_enabled; | 482 | int error_set_jmp_enabled; |
| 483 | #ifdef _WIN64 | ||
| 484 | __aligned(16) | ||
| 485 | #endif | ||
| 476 | jmp_buf error_jmp_buf; | 486 | jmp_buf error_jmp_buf; |
| 477 | int nb_errors; | 487 | int nb_errors; |
| 478 | 488 | ||