Skip to content

Commit

Permalink
Improve compatiblity
Browse files Browse the repository at this point in the history
  • Loading branch information
TracerDS committed Aug 25, 2024
1 parent 5e5ee60 commit 0fe5f2b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions include/dpp/export.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#else
/* Including the library */
#ifdef _WIN32
#include <dpp/win32_safe_warnings.h>
#define DPP_EXPORT __declspec(dllimport)
#else
#define DPP_EXPORT
Expand Down Expand Up @@ -116,11 +117,13 @@ extern bool DPP_EXPORT validate_configuration();
}

#ifndef _WIN32
#define SOCKET int
#ifndef SOCKET
#define SOCKET int
#endif
#else
#ifndef NOMINMAX
#define NOMINMAX
#endif
#ifndef NOMINMAX
#define NOMINMAX
#endif

#include <WinSock2.h>
#endif
Expand Down

0 comments on commit 0fe5f2b

Please sign in to comment.