OpenSceneGraph/include/osgTXP/trpage_sys.h

108 lines
2.2 KiB
C
Raw Normal View History

/* ************************
Copyright Terrain Experts Inc.
Terrain Experts Inc (TERREX) reserves all rights to this source code
2002-03-09 18:51:09 +08:00
unless otherwise specified in writing by the President of TERREX.
This copyright may be updated in the future, in which case that version
supercedes this one.
-------------------
Terrex Experts Inc.
2002-03-09 18:51:09 +08:00
4400 East Broadway #314
Tucson, AZ 85711
info@terrex.com
2002-03-09 18:51:09 +08:00
Tel: (520) 323-7990
************************
*/
/* trpage_sys.h
System specific declarations.
*/
#ifndef trpage_sys_h_
#define trpage_sys_h_
#ifndef PATHSEPARATOR
2002-03-09 18:51:09 +08:00
#ifdef macintosh
#define PATHSEPARATOR ":"
2002-03-09 18:51:09 +08:00
#else
#define PATHSEPARATOR "/"
2002-03-09 18:51:09 +08:00
#endif
#endif
#if defined(_WIN32)
/* *********************
System Specific Section.
This is currently set up for win32.
*********************
*/
#include <windows.h>
2002-04-26 05:31:16 +08:00
#include <stdio.h>
// Microsoft Developer warnings that annoy me
#pragma warning ( disable : 4251)
#pragma warning ( disable : 4275)
#pragma warning ( disable : 4786)
// Somewhat system independent file deletion macro
#define TRPGDELETEFILE(file) DeleteFile((file))
#ifndef int64
2002-03-09 18:51:09 +08:00
// 64 bit long value. Need this for really big files.
typedef __int64 int64;
#endif
#else // Unix
#include <stdio.h>
// Delete a file
#define TRPGDELETEFILE(file) remove((file))
2002-03-09 18:51:09 +08:00
#ifndef int64
typedef long long int64;
#endif
#endif
// Basic data types
#ifndef uint8
typedef unsigned char uint8;
#endif
#ifndef int32
typedef int int32;
#endif
#ifndef uint32
typedef unsigned int uint32;
#endif
#ifndef float32
typedef float float32;
#endif
#ifndef float64
typedef double float64;
#endif
// Note: replace this with your own STL implementation
// You can use the Microsoft provided one by deleting the first #include
#ifdef USEROGUE
#include <txRogueWave.h>
#endif
#include <vector>
#include <map>
2002-03-09 18:51:09 +08:00
#if defined(_WIN32) // PJM
// Had to take this out because of an iostream conflict
// Now referencing everything by std::
// using namespace std;
#endif
// We use long longs for addresses within a paging file
typedef int64 trpgllong;
// These are used to export classes from a DLL
// Definitely Windows specific
#include <osgTXP/trpage_ident.h>
#include <osgTXP/trdll.h>
#endif