1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
/*
* alpha_kludges.h Copyright (C) 2000 The Exult Team
*
* 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
* of the License, or (at your option) any later version.
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
/* System-specific kludges */
/* OK, right now AXP-Linux-cxx specific kludges only */
#ifndef ALPHA_KLUDGES_H
#define ALPHA_KLUDGES_H
#ifndef HAVE_HASH_MAP
# define DONT_HAVE_HASH_MAP
#endif
#ifndef HAVE_HASH_SET
# define DONT_HAVE_HASH_SET
#endif
/*------------------------*/
/* DEC cxx on Alpha/Linux */
/*------------------------*/
#if defined(__DECCXX) && defined(__linux__)
#undef HAVE_HASH_MAP
#undef HAVE_HASH_SET
#undef DONT_HAVE_HASH_MAP
#undef DONT_HAVE_HASH_SET
#define DONT_HAVE_HASH_SET
#define DONT_HAVE_HASH_MAP
namespace std {
#include <sys/types.h>
}
typedef std::size_t size_t;
namespace std {
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <ctype.h>
#include <wchar.h>
#include <wctype.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
}
#include <iomanip>
#include <fstream>
#include <assert.h>
using std::FILE;
//using std::iostream;
#include <iostream>
#include <vector>
namespace std{
using ::ostream;
using ::istream;
using ::ofstream;
using ::ifstream;
using ::cout;
using ::cin;
using ::cerr;
using ::clog;
using ::endl;
using ::ios;
using ::vector;
using ::dec;
using ::hex;
using ::setfill;
using ::setw;
};
//using std::strcmp;
//using std::FILE;
#else
#error "alpha_kludges.h should not have been included!"
#endif /* !__DECCXX && Linux*/
#endif /* !ALPHA_KLUDGES_H */
|