00001 /* 00002 ** mouse:~ppr/src/include/before_system.h 00003 ** Copyright 1995--2004, Trinity College Computing Center. 00004 ** Written by David Chappell. 00005 ** 00006 ** Redistribution and use in source and binary forms, with or without 00007 ** modification, are permitted provided that the following conditions are met: 00008 ** 00009 ** * Redistributions of source code must retain the above copyright notice, 00010 ** this list of conditions and the following disclaimer. 00011 ** 00012 ** * Redistributions in binary form must reproduce the above copyright 00013 ** notice, this list of conditions and the following disclaimer in the 00014 ** documentation and/or other materials provided with the distribution. 00015 ** 00016 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00017 ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00018 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00019 ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE 00020 ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00021 ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00022 ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00023 ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00024 ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00025 ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00026 ** POSSIBILITY OF SUCH DAMAGE. 00027 ** 00028 ** Last modified 3 February 2004. 00029 */ 00030 00031 /* 00032 ** This file should be included before any system include 00033 ** files. It sets options which may be used to decide 00034 ** which system include files to use or instructs the 00035 ** system include files to include certain parts of the API. 00036 */ 00037 00038 /* Detect duplicate inclusion. */ 00039 #ifdef _INC_BEFORE_SYSTEM 00040 #error Double inclusion of "before_system.h" 00041 #endif 00042 #define _INC_BEFORE_SYSTEM 1 00043 00044 /* GLIBC 2.x must be told how much of its API to declare. */ 00045 #define _GNU_SOURCE 1 00046 00047 /* Dietlibc leaves out u_short if we don't set this. */ 00048 #ifdef __dietlibc__ 00049 #define _BSD_SOURCE 1 00050 #endif 00051 00052 /* Read that part of the system dependent settings which 00053 tell use which include files to include. */ 00054 #define PASS1 00055 #include "sysdep.h" 00056 #undef PASS1 00057 00058 /* end of file */ 00059