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
|
/*
DDS, a bridge double dummy solver.
Copyright (C) 2006-2014 by Bo Haglund /
2014-2018 by Bo Haglund & Soren Hein.
See LICENSE and README.
*/
#ifndef DDS_PORTAB_H
#define DDS_PORTAB_H
#if defined(_WIN32)
#if defined(__MINGW32__) && !defined(WINVER)
#define WINVER 0x500
#endif
#include <windows.h>
#include <process.h>
#define USES_DLLMAIN
/* DLL uses DllMain() for initialization */
#if defined (_MSC_VER)
#include <intrin.h>
#endif
#elif defined (__CYGWIN__)
#include <windows.h>
#include <process.h>
#define USES_DLLMAIN
#elif defined (__linux)
#include <unistd.h>
#define USES_CONSTRUCTOR
/* DLL uses a constructor function for initialization */
typedef long long __int64;
#elif defined (__APPLE__)
#include <unistd.h>
#define USES_CONSTRUCTOR
typedef long long __int64;
#endif
#if (! defined DDS_THREADS_WIN32) && \
(! defined DDS_THREADS_OPENMP) && \
(! defined DDS_THREADS_NONE)
#define DDS_THREADS_NONE
#endif
#ifdef _OPENMP
#include <omp.h>
#endif
// http://stackoverflow.com/a/4030983/211160
// Use to indicate a variable is being intentionally not referred to (which
// usually generates a compiler warning)
#ifndef UNUSED
#define UNUSED(x) ((void)(true ? 0 : ((x), void(), 0)))
#endif
#endif
|