From 8a9561d566ece78e7e5fec684e111da373e4afa8 Mon Sep 17 00:00:00 2001 From: Radu Ursu Date: Wed, 19 Jun 2002 07:16:13 +0000 Subject: [PATCH] This bug concerne only Windows users. --- .../config/testfiles/CGAL_CFG_NOMINMAX_BUG.C | 35 +++++++++++++++++++ .../testfiles/CGAL_CFG_VC7_NOMINMAX_BUG.C | 35 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 Packages/Configuration/config/testfiles/CGAL_CFG_NOMINMAX_BUG.C create mode 100644 Packages/Configuration/config/testfiles/CGAL_CFG_VC7_NOMINMAX_BUG.C diff --git a/Packages/Configuration/config/testfiles/CGAL_CFG_NOMINMAX_BUG.C b/Packages/Configuration/config/testfiles/CGAL_CFG_NOMINMAX_BUG.C new file mode 100644 index 00000000000..d56ae2d9eb7 --- /dev/null +++ b/Packages/Configuration/config/testfiles/CGAL_CFG_NOMINMAX_BUG.C @@ -0,0 +1,35 @@ +// ====================================================================== +// +// Copyright (c) 2002 The CGAL Consortium +// +// This software and related documentation is part of an INTERNAL release +// of the Computational Geometry Algorithms Library (CGAL). It is not +// intended for general use. +// +// ---------------------------------------------------------------------- +// +// release : +// release_date : +// +// file : config/testfiles/CGAL_CFG_NOMINMAX_BUG.C +// package : Configuration (2.3) +// author(s) : Radu Ursu +// +// coordinator : Utrecht University +// +// ====================================================================== + +// CGAL_CFG_NOMINMAX_BUG.C +// --------------------------------------------------------------------- +// A short test program to evaluate a C++ compiler. +// This program is used by cgal_configure. +// The following documentation will be pasted in the generated configfile. +// --------------------------------------------------------------------- + +//| This is a test-case for a bug in VC++ 7.0 that redefines min(a, b) and max(a, b) +//| Files concerned: windows.h, windef.h +//| When the bug is present, CGAL_CFG_VC7_NOMINMAX_BUG is set + +#if defined _MSC_VER +#error "NOMINMAX flag should be set" +#endif \ No newline at end of file diff --git a/Packages/Configuration/config/testfiles/CGAL_CFG_VC7_NOMINMAX_BUG.C b/Packages/Configuration/config/testfiles/CGAL_CFG_VC7_NOMINMAX_BUG.C new file mode 100644 index 00000000000..479a30aa6a3 --- /dev/null +++ b/Packages/Configuration/config/testfiles/CGAL_CFG_VC7_NOMINMAX_BUG.C @@ -0,0 +1,35 @@ +// ====================================================================== +// +// Copyright (c) 2002 The CGAL Consortium +// +// This software and related documentation is part of an INTERNAL release +// of the Computational Geometry Algorithms Library (CGAL). It is not +// intended for general use. +// +// ---------------------------------------------------------------------- +// +// release : +// release_date : +// +// file : config/testfiles/CGAL_CFG_VC7_PRIVATE_TYPE_BUG.C +// package : Configuration (2.3) +// author(s) : Sylvain Pion +// +// coordinator : Utrecht University +// +// ====================================================================== + +// CGAL_CFG_VC7_NOMINMAX_BUG.C +// --------------------------------------------------------------------- +// A short test program to evaluate a C++ compiler. +// This program is used by cgal_configure. +// The following documentation will be pasted in the generated configfile. +// --------------------------------------------------------------------- + +//| This is a test-case for a bug in VC++ 7.0 that redefines min(a, b) and max(a, b) +//| Files concerned: windows.h, windef.h +//| When the bug is present, CGAL_CFG_VC7_NOMINMAX_BUG is set + +#if defined _MSC_VER +#error "NOMINMAX flag should be set" +#endif \ No newline at end of file