# os_defines.h

    00001 // Specific definitions for GNU/Linux  -*- C++ -*-
    00002
    00003 // Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
    00004 //
    00005 // This file is part of the GNU ISO C++ Library.  This library is free
    00006 // software; you can redistribute it and/or modify it under the
    00007 // terms of the GNU General Public License as published by the
    00008 // Free Software Foundation; either version 2, or (at your option)
    00009 // any later version.
    00010
    00011 // This library is distributed in the hope that it will be useful,
    00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
    00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00014 // GNU General Public License for more details.
    00015
    00016 // You should have received a copy of the GNU General Public License along
    00017 // with this library; see the file COPYING.  If not, write to the Free
    00018 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
    00019 // USA.
    00020
    00021 // As a special exception, you may use this file as part of a free software
    00022 // library without restriction.  Specifically, if other files instantiate
    00023 // templates or use macros or inline functions from this file, or you compile
    00024 // this file and link it with other files to produce an executable, this
    00025 // file does not by itself cause the resulting executable to be covered by
    00026 // the GNU General Public License.  This exception does not however
    00027 // invalidate any other reasons why the executable file might be covered by
    00028 // the GNU General Public License.
    00029
    00030 #ifndef _GLIBCPP_OS_DEFINES
    00031 #define _GLIBCPP_OS_DEFINES 1
    00032
    00033 // System-specific #define, typedefs, corrections, etc, go here.  This
    00034 // file will come before all others.
    00035
    00036 // This keeps isanum, et al from being propagated as macros.
    00037 #define __NO_CTYPE 1
    00038
    00039 #include <features.h>
    00040
    00041 #if !defined (__GLIBC__) || (__GLIBC__ == 2 && __GLIBC_MINOR__+ 0 == 0)
    00042
    00043 // The types __off_t and __off64_t are not defined through <sys/types.h>
    00044 // as _G_config assumes.  For libc5 and glibc 2.0 instead use
    00045 // <gnu/types.h> and the old name for __off64_t.
    00046 #include <gnu/types.h>
    00047 typedef __loff_t __off64_t;
    00048
    00049 // These systems have declarations mismatching those in libio.h by
    00050 // omitting throw qualifiers.  Cleanest way out is to not provide
    00051 // throw-qualifiers at all.  Defining it as empty here will make libio.h
    00052 // not define it.
    00053 #undef __THROW
    00054 #define __THROW
    00055
    00056 // Tell Glibc not to try to provide its own inline versions of
    00057 // some math functions.  Those cause assembly-time clashes with
    00058 // our definitions.
    00059 #define __NO_MATH_INLINES
    00060
    00061 #endif
    00062
    00063 #if defined __GLIBC__ && __GLIBC__ >= 2
    00064 // We must not see the optimized string functions GNU libc defines.
    00065 #define __NO_STRING_INLINES
    00066 #endif
    00067
    00068 #endif