Use always POSIX API under Cygwin, even if _WIN32 was defined by previous includes.

This commit is contained in:
Ion Gaztañaga
2025-12-14 00:27:54 +01:00
parent a9c528cc50
commit 918ddcd06c
2 changed files with 4 additions and 5 deletions

View File

@@ -31,10 +31,6 @@
#include <string>
#include <vector>
#ifdef BOOST_USE_WINDOWS_H
#include <windows.h>
#endif
#if defined(_MSC_VER)
# pragma once
# pragma comment( lib, "Advapi32.lib" )
@@ -43,6 +39,9 @@
#endif
#if defined (BOOST_INTERPROCESS_WINDOWS)
# ifdef BOOST_USE_WINDOWS_H
# include <windows.h>
# endif
# include <cstdarg>
# include <boost/detail/interlocked.hpp>
#else

View File

@@ -25,7 +25,7 @@
//#define BOOST_INTERPROCESS_FORCE_NATIVE_EMULATION
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
#if !defined(__CYGWIN__) && (defined(_WIN32) || defined(__WIN32__) || defined(WIN32))
#define BOOST_INTERPROCESS_WINDOWS
#if !defined(BOOST_INTERPROCESS_FORCE_NATIVE_EMULATION) && !defined(BOOST_INTERPROCESS_FORCE_GENERIC_EMULATION)
#define BOOST_INTERPROCESS_FORCE_GENERIC_EMULATION