Alps  2.0.2
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  * Aykut Bulut, Lehigh University *
11  * Ted Ralphs, Lehigh University *
12  * *
13  * Conceptual Design: *
14  * *
15  * Yan Xu, Lehigh University *
16  * Ted Ralphs, Lehigh University *
17  * Laszlo Ladanyi, IBM T.J. Watson Research Center *
18  * Matthew Saltzman, Clemson University *
19  * *
20  * *
21  * Copyright (C) 2001-2023, Lehigh University, Yan Xu, Aykut Bulut, and *
22  * Ted Ralphs. *
23  * All Rights Reserved. *
24  *===========================================================================*/
25 
26 
27 #ifndef AlpsCygwin_h
28 #define AlpsCygwin_h
29 
30 // This file is fully docified.
31 // There's nothing to docify...
32 
33 typedef int AlpsIndexType;
34 
35 #if defined(__GNUC__)
36 
37 # include <sys/time.h> // for gettimeofday()
38 // # include <sys/resource.h> // for setpriority()
39 # define setpriority(x,y,z)
40 # define ALPS_USE_RUSAGE 0
41 # ifndef __USE_BSD
42 # define __USE_BSD // to get gethostname() from unistd.h
43 # include <unistd.h>
44 # undef __USE_BSD
45 # else
46 # include <unistd.h>
47 # endif
48 # define AlpsPtrDiff int
49 
50 # if (__GNUC__ >= 3)
51 
52 # define NEED_TEMPLATE_CLASSES
53 # define NEED_TEMPLATE_FUNCTIONS
54 // # define NEED_STD_TEMPLATE_FUNCTIONS
55 // # define NEED_IMPLICIT_TEMPLATE_CLASSES
56 // # define NEED_IMPLICIT_TEMPLATE_FUNCTIONS
57 # define ALPS_CONSTRUCT std::_Construct
58 # define ALPS_DESTROY std::_Destroy
59 # define ALPS_DESTROY_RANGE std::_Destroy
60 
61 # else
62 
63 # define NEED_TEMPLATE_CLASSES
64 # define NEED_TEMPLATE_FUNCTIONS
65 // # define NEED_STD_TEMPLATE_FUNCTIONS
66 // # define NEED_IMPLICIT_TEMPLATE_CLASSES
67 // # define NEED_IMPLICIT_TEMPLATE_FUNCTIONS
68 # define ALPS_CONSTRUCT std::construct
69 # define ALPS_DESTROY std::destroy
70 # define ALPS_DESTROY_RANGE std::destroy
71 
72 # endif
73 
74 #endif
75 
76 #endif
AlpsIndexType
int AlpsIndexType
Definition: AlpsCygwin.h:33