X-Git-Url: https://git.gag.com/?p=debian%2Fgcpegg;a=blobdiff_plain;f=global.h;h=09d20052ff5ab97fc6529d36f3ee1c5a911c7e91;hp=d85b156c27b2e01b194e3fbf6658a44214c26f9a;hb=491009ffbaedc312f1588681d2af08cd394a99de;hpb=d946a30d5eabd2dd3b5574fc818bb1740e5827bf diff --git a/global.h b/global.h index d85b156..09d2005 100644 --- a/global.h +++ b/global.h @@ -32,6 +32,16 @@ #include "byteorder.h" /* Build byte-order independent version */ /* Good for i386, but be careful... */ +#ifdef linux +#include +typedef __u8 byte; +typedef __u8 uint8; +typedef __u16 uint16; +typedef __u32 uint32; +typedef __s8 int8; +typedef __s16 int16; +typedef __s32 int32; +#else typedef unsigned char byte; typedef unsigned char uint8; typedef unsigned short uint16; @@ -39,6 +49,7 @@ typedef unsigned long uint32; typedef char int8; typedef short int16; typedef long int32; +#endif /* linux */ /* Some fixed assumptions: Trial type is always bitsum.