File:  [RetroPC.NET] / np2 / macosx / compiler.h
Revision 1.1: download - view: text, annotated - select for diffs
Fri Oct 17 02:59:33 2003 JST (22 years ago) by yui
Branches: MAIN
CVS tags: HEAD
Initial revision

#include	<string.h>
#include	<stdio.h>
#include	<stdlib.h>
#include	<stddef.h>
#ifndef NP2GCC
#include	<MultiProcessing.h>
#endif

#define	MACOS
#define	BYTESEX_BIG

typedef char			TCHAR;
typedef unsigned char	BYTE;

typedef int				SINT;
typedef unsigned int	UINT;

typedef short			SINT16;
typedef unsigned short	UINT16;

typedef int				SINT32;
typedef unsigned int	UINT32;

typedef Boolean			BOOL;

#if 1	// for test
typedef unsigned short	WORD;
typedef unsigned int	DWORD;
#endif

#define	MAX_PATH	260

#define	ZeroMemory(a, b)		memset((a),  0 , (b))
#define	FillMemory(a, b, c)		memset((a), (c), (b))
#define	CopyMemory(a, b, c)		memcpy((a), (b), (c))

#define	max(a, b)				(((a)>(b))?(a):(b))
#define	min(a, b)				(((a)<(b))?(a):(b))


#include	"common.h"
#include	"macossub.h"
#include	"milstr.h"
#include	"_memory.h"
#include	"rect.h"
#include	"lstarray.h"
#include	"trace.h"

#define	GETTICK()			macos_gettick()
#define	GETRAND()			rand()
#define	SPRINTF				sprintf

#define	VERMOUTH_LIB
#define SOUND_CRITICAL

#define	SUPPORT_8BPP
#define	SUPPORT_16BPP
#define	SUPPORT_24BPP
#define	SUPPORT_32BPP
#define SUPPORT_NORMALDISP
// #define	MEMOPTIMIZE		1


RetroPC.NET-CVS <cvs@retropc.net>