AlpsCygwin.h
Go to the documentation of this file.
1 /*===========================================================================*
2  * This file is part of the Abstract Library for Parallel Search (ALPS). *
3  * *
4  * ALPS is distributed under the Eclipse Public License as part of the *
5  * COIN-OR repository (http://www.coin-or.org). *
6  * *
7  * Authors: *
8  * *
9  * Yan Xu, Lehigh University *
10  * Ted Ralphs, Lehigh University *
11  * *
12  * Conceptual Design: *
13  * *
14  * Yan Xu, Lehigh University *
15  * Ted Ralphs, Lehigh University *
16  * Laszlo Ladanyi, IBM T.J. Watson Research Center *
17  * Matthew Saltzman, Clemson University *
18  * *
19  * *
20  * Copyright (C) 2001-2013, Lehigh University, Yan Xu, and Ted Ralphs. *
21  *===========================================================================*/
22 
23 #ifndef AlpsCygwin_h
24 #define AlpsCygwin_h
25 
26 // This file is fully docified.
27 // There's nothing to docify...
28 
29 typedef int AlpsIndexType;
30 
31 #if defined(__GNUC__)
32 
33 # include <sys/time.h> // for gettimeofday()
34 // # include <sys/resource.h> // for setpriority()
35 # define setpriority(x,y,z)
36 # define ALPS_USE_RUSAGE 0
37 # ifndef __USE_BSD
38 # define __USE_BSD // to get gethostname() from unistd.h
39 # include <unistd.h>
40 # undef __USE_BSD
41 # else
42 # include <unistd.h>
43 # endif
44 # define AlpsPtrDiff int
45 
46 # if (__GNUC__ >= 3)
47 
48 # define NEED_TEMPLATE_CLASSES
49 # define NEED_TEMPLATE_FUNCTIONS
50 // # define NEED_STD_TEMPLATE_FUNCTIONS
51 // # define NEED_IMPLICIT_TEMPLATE_CLASSES
52 // # define NEED_IMPLICIT_TEMPLATE_FUNCTIONS
53 # define ALPS_CONSTRUCT std::_Construct
54 # define ALPS_DESTROY std::_Destroy
55 # define ALPS_DESTROY_RANGE std::_Destroy
56 
57 # else
58 
59 # define NEED_TEMPLATE_CLASSES
60 # define NEED_TEMPLATE_FUNCTIONS
61 // # define NEED_STD_TEMPLATE_FUNCTIONS
62 // # define NEED_IMPLICIT_TEMPLATE_CLASSES
63 // # define NEED_IMPLICIT_TEMPLATE_FUNCTIONS
64 # define ALPS_CONSTRUCT std::construct
65 # define ALPS_DESTROY std::destroy
66 # define ALPS_DESTROY_RANGE std::destroy
67 
68 # endif
69 
70 #endif
71 
72 #endif
int AlpsIndexType
Definition: AlpsAix43.h:34