Open Inventor Reference
MeVis/ThirdParty/Sources/Inventor/inventor/lib/mevis/include/Inventor/system/SbSystem.h
Go to the documentation of this file.
00001 /*
00002  *
00003  *  Copyright (C) 2006 MeVis Research GmbH  All Rights Reserved.
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Lesser General Public
00007  *  License as published by the Free Software Foundation; either
00008  *  version 2.1 of the License, or (at your option) any later version.
00009  *
00010  *  This library is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  Lesser General Public License for more details.
00014  *
00015  *  Further, this software is distributed without any warranty that it is
00016  *  free of the rightful claim of any third person regarding infringement
00017  *  or the like.  Any license provided herein, whether implied or
00018  *  otherwise, applies only to this software file.  Patent licenses, if
00019  *  any, provided herein do not apply to combinations of this program with
00020  *  other software, or any other product whatsoever.
00021  *
00022  *  You should have received a copy of the GNU Lesser General Public
00023  *  License along with this library; if not, write to the Free Software
00024  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  *
00026  *  Contact information: MeVis, Center for Medical Diagnostic Systems and
00027  *  Visualization GmbH, Universitätsallee 29, D-28359 Bremen, GERMANY, or:
00028  *
00029  *  http://www.mevis.de
00030  *
00031  */
00032 
00033 /*
00034  * Copyright (C) 2006   MeVis Research GmbH
00035  *
00036  _______________________________________________________________________
00037  _______________  M E V I S   R E S E A R C H   G M B H  _______________
00038  |
00039  |   Description:
00040  |   The file defines some platform specific macros
00041  |
00042  |   Author(s)      : Felix Ritter
00043  |
00044  _______________  M E V I S   R E S E A R C H   G M B H  _______________
00045  _______________________________________________________________________
00046  */
00047 
00048 #ifndef _SB_SYSTEM_
00049 #define _SB_SYSTEM_
00050 
00051 #include <Inventor/system/SbConfig.h>
00052 
00053 #ifdef WIN32
00054 
00055 #ifndef  __i386__
00056 # define __i386__  1
00057 #endif
00058 
00060 #ifdef _MSC_VER
00061 # pragma warning(disable:4244) // float, double
00062 # pragma warning(disable:4305) // float, double
00063 # pragma warning(disable:4309) // float, double
00064 # pragma warning(disable:4251) // export
00065 # pragma warning(disable:4291) // no delete destructor
00066 #endif
00067 
00068 #include <windows.h>
00069 #include <winsock.h>    // declares many unix types
00070 #include <math.h>
00071 
00078 #if defined(INVENTOR_EXPORTS) && !defined(INVENTOR_IMPORTS)
00079 # define INVENTOR_API __declspec(dllexport)
00080 #else
00081 # define INVENTOR_API __declspec(dllimport)
00082 #endif
00083 
00084 #ifdef _DEBUG
00085 # define SGIOIVDLL "Inventor_d.dll"
00086 # define SGIOIVLIB "Inventor_d.lib"
00087 #else
00088 # define SGIOIVDLL "Inventor.dll"
00089 # define SGIOIVLIB "Inventor.lib"
00090 #endif
00091 
00093 #if defined(_MSC_VER) && !defined(__SGIOIV_BUILD_DLL)
00094 # pragma comment(lib,SGIOIVLIB)
00095 #endif
00096 
00097 #else   // not WIN32
00098 
00099 #define INVENTOR_API
00100 
00101 #ifndef  CALLBACK
00102 # define CALLBACK
00103 #endif
00104 
00105 #ifndef  WINGDIAPI
00106 # define WINGDIAPI
00107 #endif
00108 
00109 #ifndef  APIENTRY
00110 # define APIENTRY
00111 #endif
00112 
00113 #endif  // WIN32
00114 
00116 
00117 #ifdef __APPLE__
00118 
00119 #include <AvailabilityMacros.h>
00120 
00121 #if defined(__APPLE_CC__) && (__APPLE_CC__ < 5400)
00122 # define OPENGL_CALLBACKFUNC GLvoid (CALLBACK *)(...)
00123 #else
00124 # define OPENGL_CALLBACKFUNC GLvoid (CALLBACK *)()
00125 #endif
00126 
00127 #else   // not __APPLE__
00128 
00129 #define OPENGL_CALLBACKFUNC GLvoid (CALLBACK *)()
00130 
00131 #endif  // __APPLE__
00132 
00134 
00135 #if defined(WIN32)
00136 
00137 #define IV_DEFAULT_FONTNAME "Times"
00138 
00139 #elif defined(__APPLE__)
00140 
00141 #define IV_DEFAULT_FONTNAME "Times-Roman"
00142 
00143 #else
00144 
00145 #define IV_DEFAULT_FONTNAME "Utopia-Regular"
00146 
00147 #endif
00148 
00149 #endif  // _SB_SYSTEM_