/* global.h Copyright (C) 2007 Colibri This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef GLOBAL_H #define GLOBAL_H //Uncomment if you want compile with demo sound //#define WITH_SOUND typedef unsigned char BOOL; typedef unsigned char BYTE; typedef unsigned short WORD; typedef unsigned long DWORD; #define false 0 #define true 1 #define NULL 0 #define max(a,b) (((a) > (b)) ? (a) : (b)) #define min(a,b) (((a) < (b)) ? (a) : (b)) #define SPEED_30 0 #define SPEED_60 1 #define SYS_IR 0x20 #define SYS_KEY 0x40 #define SYS_TURBO 0x80 #ifndef __MAIN_C__ extern char sysInfo; #endif /* __MAIN_C__ */ #define PCON_IDLE 0x01 #define PCON_PDOWN 0x02 void *memcpy(void *dest,void *src,int count); int memcmp(const void * cs,const void * ct,int count); #endif