"Fossies" - the Fresh Open Source Software Archive

Member "UXP-2019.06.08/gfx/qcms/qcmstypes.h" (8 Jun 2019, 1093 Bytes) of package /linux/www/UXP-2019.06.08.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "qcmstypes.h": 2019.03.27_vs_2019.06.08.

    1 #ifndef QCMS_TYPES_H
    2 #define QCMS_TYPES_H
    3 
    4 #if BYTE_ORDER == LITTLE_ENDIAN
    5 #define IS_LITTLE_ENDIAN
    6 #elif BYTE_ORDER == BIG_ENDIAN
    7 #define IS_BIG_ENDIAN
    8 #endif
    9 
   10 /* all of the platforms that we use _MSC_VER on are little endian
   11  * so this is sufficient for now */
   12 #ifdef _MSC_VER
   13 #define IS_LITTLE_ENDIAN
   14 #endif
   15 
   16 #ifdef __OS2__
   17 #define IS_LITTLE_ENDIAN
   18 #endif
   19 
   20 #if !defined(IS_LITTLE_ENDIAN) && !defined(IS_BIG_ENDIAN)
   21 #error Unknown endianess
   22 #endif
   23 
   24 #if defined (_SVR4) || defined (SVR4) || defined (__OpenBSD__) || defined (_sgi) || defined (__sun) || defined (sun) || defined (__digital__)
   25 #  include <inttypes.h>
   26 #elif defined (_MSC_VER) && _MSC_VER < 1600
   27 typedef __int8 int8_t;
   28 typedef unsigned __int8 uint8_t;
   29 typedef __int16 int16_t;
   30 typedef unsigned __int16 uint16_t;
   31 typedef __int32 int32_t;
   32 typedef unsigned __int32 uint32_t;
   33 typedef __int64 int64_t;
   34 typedef unsigned __int64 uint64_t;
   35 #ifdef _WIN64
   36 typedef unsigned __int64 uintptr_t;
   37 #else
   38 typedef unsigned long uintptr_t;
   39 #endif
   40 
   41 #else
   42 #  include <stdint.h>
   43 #endif
   44 
   45 typedef qcms_bool bool;
   46 #define true 1
   47 #define false 0
   48 
   49 #endif