mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-31 00:15:55 -04:00
Initial commit of the sharedFoundationTypes library
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
#if defined(PLATFORM_LINUX)
|
||||
#include "../../src/linux/FoundationTypesLinux.h"
|
||||
#else
|
||||
#error unsupported platform
|
||||
#endif
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#if defined(PLATFORM_WIN32)
|
||||
#include "../../src/win32/FoundationTypesWin32.h"
|
||||
#else
|
||||
#error unsupported platform
|
||||
#endif
|
||||
+1
@@ -0,0 +1 @@
|
||||
#include "../../src/shared/FoundationTypes.h"
|
||||
@@ -0,0 +1,30 @@
|
||||
// PRIVATE. Do not export this header file outside the package.
|
||||
|
||||
#ifndef INCLUDED_FoundationTypesLinux_H
|
||||
#define INCLUDED_FoundationTypesLinux_H
|
||||
|
||||
// ======================================================================
|
||||
// specify what platform we're running on.
|
||||
|
||||
#define PLATFORM_UNIX
|
||||
#define PLATFORM_LINUX
|
||||
|
||||
#include <cstdio>
|
||||
// ======================================================================
|
||||
// basic types that we assume to be around
|
||||
|
||||
typedef unsigned int uint;
|
||||
typedef unsigned char uint8;
|
||||
typedef unsigned short uint16;
|
||||
typedef unsigned long uint32;
|
||||
typedef signed char int8;
|
||||
typedef signed short int16;
|
||||
typedef signed long int32;
|
||||
typedef signed long long int int64;
|
||||
typedef unsigned long long int uint64;
|
||||
typedef float real;
|
||||
typedef FILE* FILE_HANDLE;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// FoundationTypes.cpp
|
||||
// copyright (c) 2001 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#ifndef INCLUDED_FoundationTypes_H
|
||||
#define INCLUDED_FoundationTypes_H
|
||||
|
||||
// ======================================================================
|
||||
|
||||
#ifdef WIN32
|
||||
#include "../win32/FoundationTypesWin32.h"
|
||||
#elif LINUX
|
||||
#include "../linux/FoundationTypesLinux.h"
|
||||
#else
|
||||
#error unsupported platform
|
||||
#endif
|
||||
|
||||
// ======================================================================
|
||||
|
||||
typedef unsigned char byte;
|
||||
typedef unsigned int uint;
|
||||
typedef unsigned long ulong;
|
||||
typedef unsigned short ushort;
|
||||
|
||||
// ======================================================================
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
// PRIVATE. Do not export this header file outside the package.
|
||||
|
||||
// ======================================================================
|
||||
//
|
||||
// FoundationTypesWin32.cpp
|
||||
// copyright (c) 2001 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#ifndef INCLUDED_FoundationTypesWin32_H
|
||||
#define INCLUDED_FoundationTypesWin32_H
|
||||
|
||||
// ======================================================================
|
||||
// specify what platform we're running on.
|
||||
|
||||
#define PLATFORM_WIN32
|
||||
|
||||
// ======================================================================
|
||||
// basic types that we assume to be around
|
||||
|
||||
typedef unsigned char uint8;
|
||||
typedef unsigned short uint16;
|
||||
typedef unsigned long uint32;
|
||||
typedef unsigned __int64 uint64;
|
||||
typedef signed char int8;
|
||||
typedef signed short int16;
|
||||
typedef signed long int32;
|
||||
typedef signed __int64 int64;
|
||||
typedef int FILE_HANDLE;
|
||||
|
||||
// ======================================================================
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user