mirror of https://github.com/CGAL/cgal
124 lines
2.4 KiB
C
124 lines
2.4 KiB
C
// Copyright (c) 1999 Martin-Luther-University Halle-Wittenberg (Germany).
|
|
// All rights reserved.
|
|
//
|
|
// This file is part of CGAL (www.cgal.org); you may redistribute it under
|
|
// the terms of the Q Public License version 1.0.
|
|
// See the file LICENSE.QPL distributed with CGAL.
|
|
//
|
|
// Licensees holding a valid commercial license may use this file in
|
|
// accordance with the commercial license agreement provided with the software.
|
|
//
|
|
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
|
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
//
|
|
// $URL$
|
|
// $Id$
|
|
//
|
|
//
|
|
// Author(s) : Matthias Baesken, Algorithmic Solutions
|
|
|
|
#ifndef CGAL_WINDOW_SYS_WIN32_H
|
|
#define CGAL_WINDOW_SYS_WIN32_H
|
|
|
|
#if !defined(__win32__)
|
|
#define __win32__
|
|
#endif
|
|
|
|
|
|
#define LITTLE_ENDIAN_MACHINE
|
|
|
|
|
|
#if defined(__BORLANDC__)
|
|
|
|
// turn of some warnings
|
|
#pragma option -w-inl -w-ccc -w-aus -w-eff -w-par -w-rch
|
|
|
|
#define __HAS_EXPLICIT_KEYWORD__
|
|
#define __explicit explicit
|
|
|
|
#if __BORLANDC__ < 0x540
|
|
#define NO_STATIC_DATA_MEMBER
|
|
#define __ALL_MEMBERS_INSTANT__
|
|
#define __typename
|
|
#define __temp_friend_decl
|
|
#else
|
|
#define __HAS_TYPENAME_KEYWORD__
|
|
#define __typename typename
|
|
#define __temp_friend_decl <>
|
|
#define __HAS_MEMBER_TEMPLATES__
|
|
#endif
|
|
|
|
#define __temp_func_inline
|
|
|
|
|
|
#include <float.h>
|
|
/*
|
|
static int leda_init_fpu()
|
|
{ _control87(PC_53,MCW_PC);
|
|
_control87(63U,MCW_EM);
|
|
return 0;
|
|
}
|
|
|
|
static int setdouble_ieee_for_bcc = leda_init_fpu();
|
|
*/
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(_MSC_VER)
|
|
|
|
|
|
// turn off some warnings
|
|
|
|
// exception handling turned off when using std headers
|
|
#pragma warning(disable:4530)
|
|
|
|
// no matching delete operator (in presence of -GX)
|
|
#pragma warning(disable:4291)
|
|
|
|
// missing dll-interface
|
|
#pragma warning(disable:4251)
|
|
#pragma warning(disable:4275)
|
|
|
|
|
|
#define __HAS_MEMBER_TEMPLATES__
|
|
#define __HAS_EXPLICIT_KEYWORD__
|
|
#define __explicit explicit
|
|
#define __temp_friend_decl
|
|
#define __temp_func_inline
|
|
|
|
|
|
#define __HAS_TYPENAME_KEYWORD__
|
|
#define __typename typename
|
|
|
|
|
|
#include <float.h>
|
|
/*
|
|
inline int leda_init_fpu()
|
|
{ _control87(_PC_53,_MCW_PC);
|
|
return 0;
|
|
}
|
|
|
|
static int setdouble_ieee_for_msc = leda_init_fpu();
|
|
*/
|
|
#endif
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
// DLL definitions
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
#define __exportC
|
|
#define __exportF
|
|
#define __exportD
|
|
|
|
|
|
#define _exportC
|
|
#define _exportF
|
|
#define _exportD
|
|
|
|
|
|
#endif
|