Changeset 1530 for trunk/lib


Ignore:
Timestamp:
Oct 12, 2011, 8:56:07 PM (8 years ago)
Author:
ksherdy
Message:

Added preprocessor guard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/config.hpp

    r1514 r1530  
    1212#define CONFIG_HPP_
    1313
    14 #ifndef BYTE_ORDER
    15         #if defined _MSC_VER
    16                 #define LITTLE_ENDIAN 1234
    17                 #define BIG_ENDIAN 4321
    18                 #define BYTE_ORDER LITTLE_ENDIAN
    19         #endif
     14#if !(defined (_MSC_VER) || (defined __GNUC__))
     15        #error "Compiler not supported. Aborting compilation."
    2016#endif
    2117
     
    5551        //              #define IDISA_ALWAYS_INLINE     __forceinline // ICC defaults to GCC. See, Intel® C++ Compiler User and Reference Guides
    5652        #elif defined __GNUC__
    57                 #define IDISA_ALWAYS_INLINE   __attribute__((always_inline)) IDISA_INLINE
     53                #define IDISA_ALWAYS_INLINE   __attribute__((always_inline))
    5854        #else
    5955                #define IDISA_ALWAYS_INLINE   IDISA_INLINE
Note: See TracChangeset for help on using the changeset viewer.