Browse Source

Update defs.h

pull/31/head
Anders Jenbo 7 years ago committed by GitHub
parent
commit
2feae2143f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      defs.h

3
defs.h

@ -152,6 +152,7 @@ __inline WORD __ROR2__(WORD value, DWORD count)
// Typedef for the function pointer
typedef void (*_PVFV)(void);
#ifdef _MSC_VER && !defined(__APPLE__)
// Define our segment names
#define SEGMENT_C_INIT ".CRT$XCU"
@ -159,9 +160,7 @@ typedef void (*_PVFV)(void);
#pragma data_seg(SEGMENT_C_INIT)
#pragma data_seg() // Switch back to the default segment
// Call function pointer arrays and place them in the segments created above
#ifdef _MSC_VER
#define SEG_ALLOCATE(SEGMENT) __declspec(allocate(SEGMENT))
#else
#define SEG_ALLOCATE(SEGMENT)
#endif

Loading…
Cancel
Save