/home/coin/SVN-release/CoinAll-1.1.0/Alps/src/AlpsCygwin.h

Go to the documentation of this file.
00001 /*===========================================================================*
00002  * This file is part of the Abstract Library for Parallel Search (ALPS).     *
00003  *                                                                           *
00004  * ALPS is distributed under the Common Public License as part of the        *
00005  * COIN-OR repository (http://www.coin-or.org).                              *
00006  *                                                                           *
00007  * Authors:                                                                  *
00008  *                                                                           *
00009  *          Yan Xu, Lehigh University                                        *
00010  *          Ted Ralphs, Lehigh University                                    *
00011  *                                                                           *
00012  * Conceptual Design:                                                        *
00013  *                                                                           *
00014  *          Yan Xu, Lehigh University                                        *
00015  *          Ted Ralphs, Lehigh University                                    *
00016  *          Laszlo Ladanyi, IBM T.J. Watson Research Center                  *
00017  *          Matthew Saltzman, Clemson University                             *
00018  *                                                                           * 
00019  *                                                                           *
00020  * Copyright (C) 2001-2007, Lehigh University, Yan Xu, and Ted Ralphs.       *
00021  *===========================================================================*/
00022 
00023 #ifndef AlpsCygwin_h
00024 #define AlpsCygwin_h
00025 
00026 // This file is fully docified.
00027 // There's nothing to docify...
00028 
00029 typedef int AlpsIndexType;
00030 
00031 #if defined(__GNUC__)
00032 
00033 #  include <sys/time.h>     // for gettimeofday()
00034 // # include <sys/resource.h> // for setpriority()
00035 #  define setpriority(x,y,z) 
00036 #  define ALPS_USE_RUSAGE 0
00037 #  ifndef __USE_BSD
00038 #    define __USE_BSD  // to get gethostname() from unistd.h
00039 #    include <unistd.h>
00040 #    undef __USE_BSD
00041 #  else
00042 #    include <unistd.h>
00043 #  endif
00044 #  define AlpsPtrDiff       int
00045 
00046 #  if (__GNUC__ >= 3)
00047 
00048 #    define NEED_TEMPLATE_CLASSES
00049 #    define NEED_TEMPLATE_FUNCTIONS
00050 // #    define NEED_STD_TEMPLATE_FUNCTIONS
00051 // #    define NEED_IMPLICIT_TEMPLATE_CLASSES
00052 // #    define NEED_IMPLICIT_TEMPLATE_FUNCTIONS
00053 #    define ALPS_CONSTRUCT     std::_Construct
00054 #    define ALPS_DESTROY       std::_Destroy
00055 #    define ALPS_DESTROY_RANGE std::_Destroy
00056 
00057 #  else
00058 
00059 #    define NEED_TEMPLATE_CLASSES
00060 #    define NEED_TEMPLATE_FUNCTIONS
00061 // #    define NEED_STD_TEMPLATE_FUNCTIONS
00062 // #    define NEED_IMPLICIT_TEMPLATE_CLASSES
00063 // #    define NEED_IMPLICIT_TEMPLATE_FUNCTIONS
00064 #    define ALPS_CONSTRUCT     std::construct
00065 #    define ALPS_DESTROY       std::destroy
00066 #    define ALPS_DESTROY_RANGE std::destroy
00067 
00068 #  endif
00069 
00070 #endif
00071 
00072 #endif

Generated on Sun Nov 14 14:06:28 2010 for Coin-All by  doxygen 1.4.7