Initial commit of the sharedFoundationTypes library

This commit is contained in:
Anonymous
2014-01-13 06:41:42 -07:00
parent f1479f792b
commit 118c5b9fdb
6 changed files with 105 additions and 0 deletions
@@ -0,0 +1,5 @@
#if defined(PLATFORM_LINUX)
#include "../../src/linux/FoundationTypesLinux.h"
#else
#error unsupported platform
#endif
@@ -0,0 +1,5 @@
#if defined(PLATFORM_WIN32)
#include "../../src/win32/FoundationTypesWin32.h"
#else
#error unsupported platform
#endif
@@ -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