/* Copyright (C) 2013 Interactive Brokers LLC. All rights reserved. This code is subject to the terms * and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */ #ifdef _MSC_VER #ifdef TWSAPISSLDLL # define TWSAPISSLDLLEXP __declspec(dllexport) #endif #define assert ASSERT #define snprintf _snprintf #include #include #define IB_WIN32 #else #include // defines _POSIX_THREADS, @see http://bit.ly/1pWJ8KQ#tag_13_80_03_02 #include #include #if defined(_POSIX_THREADS) && (_POSIX_THREADS > 0) #include #define IB_POSIX #else #error "Not supported on this platform" #endif #endif // #ifdef _MSC_VER #include #include #include #include #include #include #include #ifndef TWSAPISSLDLLEXP #define TWSAPISSLDLLEXP #endif #ifndef TWSAPIDLLEXP #define TWSAPIDLLEXP #endif