Issue #20: Fix Arissat TLM headers so that they work on Linux too.

This commit is contained in:
Alexandru Csete 2011-08-20 19:07:17 +02:00
parent c3b9e35a71
commit baec301927
2 changed files with 5 additions and 3 deletions

View File

@ -95,7 +95,9 @@ typedef signed int s32;
typedef signed long long s64; typedef signed long long s64;
#endif #endif
#if defined(_MSC_VER) || defined (_WIN32) #define _LIN
#if defined(_LIN) || defined (_WIN32)
/* /*
* Type definitions for IA32 Architecture, * Type definitions for IA32 Architecture,
* Using the Microsoft C compiler * Using the Microsoft C compiler
@ -106,7 +108,7 @@ typedef signed long long s64;
#define PACKED __attribute__ ((packed)) #define PACKED __attribute__ ((packed))
#endif #endif
typedef unsigned char bool; //typedef unsigned char bool;
typedef unsigned char u8; typedef unsigned char u8;
typedef unsigned short u16; typedef unsigned short u16;
typedef unsigned int u32; typedef unsigned int u32;

View File

@ -16,7 +16,7 @@
#define False 0 #define False 0
// Call out the basic defined types, defined to be the same across multiple compilers // Call out the basic defined types, defined to be the same across multiple compilers
#include "common/ss_stdint.h" #include "tlm/arissat/ss_stdint.h"
#define PERCENT_100 (100*2) #define PERCENT_100 (100*2)
#define PERCENT_75 (75*2) #define PERCENT_75 (75*2)