/* Copyright (c) 1997-2006
   Ewgenij Gawrilow, Michael Joswig (Technische Universitaet Berlin, Germany)
   http://www.math.tu-berlin.de/polymake,  mailto:polymake@math.tu-berlin.de

   This program is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published by the
   Free Software Foundation; either version 2, or (at your option) any
   later version: http://www.gnu.org/licenses/gpl.txt.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
*/

#ifndef _POLYMAKE_EXT_DEFINES_H
#define _POLYMAKE_EXT_DEFINES_H "$Project: polymake $$Id: defines.h,v 1.4 2006/02/01 17:39:16 gawrilow Exp $"

#ifdef std_ext
#  error std_ext already defined!
#endif

#if defined(__GNUC__)
#  define STD_EXT_HEADER(name) <ext/name>
#  if __GNUC__>3 || __GNUC_MINOR__>0
#    define std_ext __gnu_cxx
#    define STD_EXT_HEADER1(name) STD_EXT_HEADER(name)
#  else
#    define std_ext std
#    define STD_EXT_HEADER1(name) <name>
#  endif
#elif defined(__INTEL_COMPILER)
#  define STD_EXT_HEADER(name) <ext/name>
#  define STD_EXT_HEADER1(name) <name>
#else
#  define std_ext std
#  define STD_EXT_HEADER(name) <name>
#  define STD_EXT_HEADER1(name) <name>
#endif

#define _HAS_PRAGMA_INTERFACE defined(__GNUC__) && __GNUC__==3 && __GNUC_MINOR__<3 && !defined(__APPLE__) && !defined(__COMO__)

#endif // _POLYMAKE_EXT_DEFINES_H

// Local Variables:
// mode:C++
// End:
