Main Page | Modules | File List | Globals | Related Pages

Imported Symbols
[POSH Symbols and Macros]


Detailed Description

These symbols are examined by POSH during compile time configuration.

It is assumed that the user will define them as needed. The one exception is POSH_NO_FLOAT, which is automatically defined on systems with known floating point idiosyncracies.


Defines

#define POSH_DLL
 define this if your library is being built or used as a DLL

#define POSH_BUILDING_LIB
 define this when actually building a library (as opposed to building an app).

#define POSH_NO_FLOAT
 define this if you want to disable floating point support


Define Documentation

#define POSH_BUILDING_LIB
 

define this when actually building a library (as opposed to building an app).

POSH_BUILDING_LIB is read by POSH to determine the proper import/export specification for a library. If you are using POSH to build a library then you should define this symbol before including posh.h in your library's source files.

#define POSH_DLL
 

define this if your library is being built or used as a DLL

POSH_DLL is read by POSH to determine the proper import/export linkage specifications for Windows DLLs.

The correct way to do this is to have each library handle this with its it own constants:

#ifdef MYLIB_DLL
#define POSH_DLL
#else
#undef POSH_DLL
#endif
#include "posh.h"

An application using your library should never be required to explicitly set POSH_DLL. Instead, it should be responsible for setting your library's own appropriate DLL constant which is then used to set POSH_DLL as necessary.

#define POSH_NO_FLOAT
 

define this if you want to disable floating point support

POSH_NO_FLOAT should be defined by the user if they would like to disable floating point support in POSH. This removes some (optional) functionality, but allows POSH to operate safely on a slightly wider variety of platforms such as Cray and the MIPS R5900 (Sony PS2) that do not support proper IEEE floating point arithmetic.


Generated on Tue Jan 31 18:27:36 2006 for POSH by doxygen 1.3.7