mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
43abfba723
re2c instead of "Linking X". - Updated lemon and re2c to the latest versions and ported dehsupp to use them for code generation. (Xlatcc is next.) - Added function level linking for Makefile.mingw. SVN r144 (trunk)
57 lines
1.1 KiB
C++
57 lines
1.1 KiB
C++
/* $Id: basics.h,v 1.6 2005/12/29 14:32:09 helly Exp $ */
|
|
#ifndef _basics_h
|
|
#define _basics_h
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#elif defined(_WIN32)
|
|
#include "config_w32.h"
|
|
#endif
|
|
|
|
namespace re2c
|
|
{
|
|
|
|
#if SIZEOF_CHAR == 1
|
|
typedef unsigned char byte;
|
|
#elif SIZEOF_SHORT == 1
|
|
typedef unsigned short byte;
|
|
#elif SIZEOF_INT == 1
|
|
typedef unsigned int byte;
|
|
#elif SIZEOF_LONG == 1
|
|
typedef unsigned long byte;
|
|
#else
|
|
typedef unsigned char byte;
|
|
#endif
|
|
|
|
#if SIZEOF_CHAR == 2
|
|
typedef unsigned char word;
|
|
#elif SIZEOF_SHORT == 2
|
|
typedef unsigned short word;
|
|
#elif SIZEOF_INT == 2
|
|
typedef unsigned int word;
|
|
#elif SIZEOF_LONG == 2
|
|
typedef unsigned long word;
|
|
#else
|
|
typedef unsigned short word;
|
|
#endif
|
|
|
|
#if SIZEOF_CHAR == 4
|
|
typedef unsigned char dword;
|
|
#elif SIZEOF_SHORT == 4
|
|
typedef unsigned short dword;
|
|
#elif SIZEOF_INT == 4
|
|
typedef unsigned int dword;
|
|
#elif SIZEOF_LONG == 4
|
|
typedef unsigned long dword;
|
|
#else
|
|
typedef unsigned long dword;
|
|
#endif
|
|
|
|
typedef unsigned int uint;
|
|
typedef unsigned char uchar;
|
|
typedef unsigned short ushort;
|
|
typedef unsigned long ulong;
|
|
|
|
} // end namespace re2c
|
|
|
|
#endif
|