20 #ifndef VTFLIB_STDAFX_H
21 #define VTFLIB_STDAFX_H
25 #if defined(_WIN32) || defined(_WIN64)
32 # ifdef VTFLIB_EXPORTS
33 # define VTFLIB_API __declspec(dllexport)
35 # define VTFLIB_API __declspec(dllimport)
38 # define VTFLIB_API __attribute__((visibility("default")))
42 # define VTFLIB_ALIGN16 __declspec(align(16))
43 # define VTFLIB_PRINTF(FMT,ARGS)
45 # define VTFLIB_ALIGN16 __attribute__((aligned(16)))
46 # define VTFLIB_PRINTF(FMT,ARGS) __attribute__((format(printf, FMT, ARGS)))
80 typedef unsigned __int8 vlUInt8;
81 typedef unsigned __int16 vlUInt16;
82 typedef unsigned __int32 vlUInt32;
83 typedef unsigned __int64 vlUInt64;
86 # define _CRT_SECURE_NO_WARNINGS
87 # define _CRT_NONSTDC_NO_DEPRECATE
90 # define WIN32_LEAN_AND_MEAN
93 # define vlFile HANDLE
96 # define strcasecmp stricmp
103 typedef off_t vlOffset;
104 typedef off_t vlSSize;
105 typedef size_t vlSize;
107 typedef int8_t vlUInt8;
108 typedef int16_t vlUInt16;
109 typedef int32_t vlUInt32;
110 typedef int64_t vlUInt64;
112 typedef FILE* vlFile;
116 #if !defined(_MSC_VER) || _MSC_VER >= 1600 // Visual Studio 2010
117 # define STATIC_ASSERT(condition, message) static_assert(condition, message)
119 # define STATIC_ASSERT(condition, message) typedef char __C_ASSERT__[(condition) ? 1 : -1]
122 typedef enum tagVLSeekMode
125 SEEK_MODE_BEGIN = FILE_BEGIN,
126 SEEK_MODE_CURRENT = FILE_CURRENT,
127 SEEK_MODE_END = FILE_END
129 SEEK_MODE_BEGIN = SEEK_SET,
130 SEEK_MODE_CURRENT = SEEK_CUR,
131 SEEK_MODE_END = SEEK_END
signed long vlLong
Signed long number.
Definition: stdafx.h:57
unsigned char vlByte
Single unsigned byte.
Definition: stdafx.h:52
unsigned long vlULong
Unsigned long number.
Definition: stdafx.h:58
vlSingle vlFloat
Floating point number (same as vlSingled).
Definition: stdafx.h:63
char vlChar
Single signed character.
Definition: stdafx.h:51
double vlDouble
Double number.
Definition: stdafx.h:60
unsigned int vlUInt
Unsigned integer value.
Definition: stdafx.h:56
signed short vlShort
Signed short floating point value.
Definition: stdafx.h:53
void vlVoid
Void value.
Definition: stdafx.h:61
unsigned short vlUShort
Unsigned short floating point value.
Definition: stdafx.h:54
signed int vlInt
Signed integer value.
Definition: stdafx.h:55
unsigned char vlBool
Boolean value 0/1.
Definition: stdafx.h:50
float vlSingle
Floating point number.
Definition: stdafx.h:59