alpha_kludges.h

Go to the documentation of this file.
00001 /*
00002  * alpha_kludges.h Copyright (C) 2000 The Exult Team
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017  *
00018  */
00019 /* System-specific kludges */
00020 /* OK, right now AXP-Linux-cxx specific kludges only */
00021 
00022 
00023 #ifndef ALPHA_KLUDGES_H
00024 #define ALPHA_KLUDGES_H
00025 
00026 #ifndef HAVE_HASH_MAP
00027 #  define DONT_HAVE_HASH_MAP
00028 #endif
00029 #ifndef HAVE_HASH_SET
00030 #  define DONT_HAVE_HASH_SET
00031 #endif
00032 
00033 
00034 /*------------------------*/
00035 /* DEC cxx on Alpha/Linux */
00036 /*------------------------*/
00037 #if defined(__DECCXX) && defined(__linux__)
00038 
00039 #undef HAVE_HASH_MAP
00040 #undef HAVE_HASH_SET
00041 #undef DONT_HAVE_HASH_MAP
00042 #undef DONT_HAVE_HASH_SET
00043 #define DONT_HAVE_HASH_SET
00044 #define DONT_HAVE_HASH_MAP
00045 
00046 namespace std {
00047 #include <sys/types.h>
00048 }
00049 
00050 typedef std::size_t size_t;
00051 
00052 namespace std {
00053 #include <stdio.h>
00054 #include <stdlib.h>
00055 #include <unistd.h>
00056 #include <signal.h>
00057 #include <sys/stat.h>
00058 #include <fcntl.h>
00059 #include <errno.h>
00060 #include <string.h>
00061 #include <ctype.h>
00062 #include <wchar.h>
00063 #include <wctype.h>
00064 #include <sys/time.h>
00065 #include <time.h>
00066 #include <unistd.h>
00067 #include <math.h>
00068 }
00069 #include <iomanip>
00070 #include <fstream>
00071 #include <assert.h>
00072 
00073 using std::FILE;
00074 //using std::iostream;
00075 
00076 
00077 #include <iostream>
00078 #include <vector>
00079 
00080 namespace std{
00081   using ::ostream;
00082   using ::istream;
00083   using ::ofstream;
00084   using ::ifstream;
00085   using ::cout;
00086   using ::cin;
00087   using ::cerr;
00088   using ::clog;
00089   using ::endl;
00090   using ::ios;
00091   using ::vector;
00092   using ::dec;
00093   using ::hex;
00094   using ::setfill;
00095   using ::setw;
00096 };
00097 
00098 
00099 //using std::strcmp;
00100 //using std::FILE;
00101 
00102 #else
00103 #error "alpha_kludges.h should not have been included!"
00104 #endif /* !__DECCXX && Linux*/
00105 
00106 #endif /* !ALPHA_KLUDGES_H */
00107 
00108 

Generated on Mon Jul 9 14:42:40 2007 for ExultEngine by  doxygen 1.5.1