00001 // include/libcwd/timestamp-sys.h. Generated from sys.h.in by configure. 00002 // $Header: /cvsroot/libcwd/libcwd/include/libcwd/sys.h.in,v 1.3 2004/05/27 03:03:53 libcw Exp $ 00003 // 00004 // Copyright (C) 2000 - 2003, by 00005 // 00006 // Carlo Wood, Run on IRC <carlo@alinoe.com> 00007 // RSA-1024 0x624ACAD5 1997-01-26 Sign & Encrypt 00008 // Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF 61 00009 // 00010 // This file may be distributed under the terms of the Q Public License 00011 // version 1.0 as appearing in the file LICENSE.QPL included in the 00012 // packaging of this file. 00013 // 00014 00015 // 00016 // NOTE: 00017 // 00018 // This header file was generated with the `configure' script of libcwd-0.99.37 00019 // If you change your system header files (like glibc or kernel header) 00020 // it might be needed to regenerate it. 00021 // 00022 00027 #ifndef LIBCWD_SYS_H 00028 #define LIBCWD_SYS_H 00029 00030 namespace libcwd { 00039 int const builtin_return_address_offset = -1; 00040 } 00041 00042 // 00043 // Compilers and preprocessor used. Put here to cause a recompile when changed. 00044 // CC : gcc version 3.2.3 00045 // CXX : gcc version 3.2.3 00046 // CXXCPP: gcc version 3.5.0 20040530 (experimental) 00047 // 00048 00049 // 00050 // Sanity check - if this is defined then _REENTRANT will be defined regardless 00051 // and that won't work. 00052 // 00053 #ifdef __GTHREADS 00054 #error No, no, no... "sys.h" has to be the VERY first header file you include. Before ANY other (system) header file. 00055 #endif 00056 00057 // 00058 // g++ 3.4 (20030816) defines _REENTRANT regardless when including 00059 // certain standard libstdc++ header files. Therefore we can ONLY 00060 // test on _REENTRANT here, before including any other header file. 00061 // 00062 #if defined(_REENTRANT) || defined(_THREAD_SAFE) 00063 #define LIBCWD_THREAD_SAFE 1 00064 #else 00065 #define LIBCWD_THREAD_SAFE 0 00066 #endif 00067 00068 #if LIBCWD_THREAD_SAFE && !defined(_GNU_SOURCE) 00069 #error Sorry, libcwd_r uses GNU extensions, also in the header files. 00070 #error Therefore you must also define _GNU_SOURCE when you are linking with -lcwd_r. 00071 #error Please add #define _GNU_SOURCE to your "sys.h", see reference-manual/preparation.html#preparation_step2. 00072 #endif 00073 00074 #endif /* LIBCWD_SYS_H */