From c503daf6c6b99beb7d811c952fd52d763aa008ca Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 12 Dec 2018 16:16:36 +0100 Subject: proto/wine: fixes - use SDK_WINE boolean - improve logic when building for X-Plane only - rename when building for X-Plane - conditionalize Wine-related stuff - move starting the wrapper to initialize() as it should be done - use more C++17 - update header usage --- proto-wine/opentrack-wrapper-wine-main.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'proto-wine/opentrack-wrapper-wine-main.cxx') diff --git a/proto-wine/opentrack-wrapper-wine-main.cxx b/proto-wine/opentrack-wrapper-wine-main.cxx index 1c88755a..6370e7f4 100644 --- a/proto-wine/opentrack-wrapper-wine-main.cxx +++ b/proto-wine/opentrack-wrapper-wine-main.cxx @@ -1,9 +1,9 @@ #include + // OSX sdk 10.8 build error otherwise -#ifdef _LIBCPP_MSVCRT -# undef _LIBCPP_MSVCRT -#endif +#undef _LIBCPP_MSVCRT #include + #include "freetrackclient/fttypes.h" #include "wine-shm.h" #include "compat/export.hpp" @@ -48,11 +48,11 @@ int main(void) ShmPosix lck_posix(WINE_SHM_NAME, WINE_MTX_NAME, sizeof(WineSHM)); ShmWine lck_wine("FT_SharedMem", "FT_Mutext", sizeof(FTHeap)); if(!lck_posix.success()) { - printf("Can't open posix map: %d\n", errno); + fprintf(stderr, "Can't open posix map: %d\n", errno); return 1; } if(!lck_wine.success()) { - printf("Can't open Wine map\n"); + fprintf(stderr, "Can't open Wine map\n"); return 1; } WineSHM* shm_posix = (WineSHM*) lck_posix.ptr(); -- cgit v1.2.3