Fix missing defines under Windows

pull/239/head
Jeffrey Walton 2016-07-24 21:30:03 -04:00
parent 06a7abc9c8
commit 57337a5479
1 changed files with 7 additions and 1 deletions

8
cpu.h
View File

@ -657,12 +657,18 @@ inline int GetCacheLineSize()
#define INTEL_NOPREFIX ".intel_syntax;" #define INTEL_NOPREFIX ".intel_syntax;"
#define ATT_PREFIX ".att_syntax;" #define ATT_PREFIX ".att_syntax;"
#define ATT_NOPREFIX ".att_syntax;" #define ATT_NOPREFIX ".att_syntax;"
#else #elif defined(__GNUC__)
#define NEW_LINE #define NEW_LINE
#define INTEL_PREFIX ".intel_syntax prefix;" #define INTEL_PREFIX ".intel_syntax prefix;"
#define INTEL_NOPREFIX ".intel_syntax noprefix;" #define INTEL_NOPREFIX ".intel_syntax noprefix;"
#define ATT_PREFIX ".att_syntax prefix;" #define ATT_PREFIX ".att_syntax prefix;"
#define ATT_NOPREFIX ".att_syntax noprefix;" #define ATT_NOPREFIX ".att_syntax noprefix;"
#else
#define NEW_LINE
#define INTEL_PREFIX
#define INTEL_NOPREFIX
#define ATT_PREFIX
#define ATT_NOPREFIX
#endif #endif
NAMESPACE_END NAMESPACE_END