port.h 618 Bytes
Newer Older
Robert Ricci's avatar
Robert Ricci committed
1 2
/*
 * EMULAB-COPYRIGHT
3
 * Copyright (c) 2002-2006 University of Utah and the Flux Group.
Robert Ricci's avatar
Robert Ricci committed
4 5 6
 * All rights reserved.
 */

7
// This file may need to be changed depending on the architecture.
8
#ifndef __PORT_H
9
#define __PORT_H
10 11
#include <limits.h>

12
#ifndef WCHAR_MIN
13 14
#define WCHAR_MIN INT_MIN
#define WCHAR_MAX INT_MAX
15
#endif
16 17 18 19 20

/*
 * We have to do these includes differently depending on which version of gcc
 * we're compiling with
 */
21 22 23 24 25
#if (__GNUC__ == 3 && __GNUC_MINOR__ > 0) || (__GNUC__ > 3)
#define NEW_GCC
#endif

#ifdef NEW_GCC
26
#include <ext/slist>
27 28
using namespace __gnu_cxx;
#else
29
#include <slist>
30 31 32 33
#endif

#else
#endif