Skip to content

Commit

Permalink
use HAVE prefix instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Nov 6, 2023
1 parent 6a5d7a6 commit 4ada582
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions cmake/re-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@ if(WIN32)

unset(CMAKE_EXTRA_INCLUDE_FILES)
set(CMAKE_EXTRA_INCLUDE_FILES "winsock2.h;qos2.h")
check_type_size("QOS_FLOWID" HAS_QOS_FLOWID BUILTIN_TYPES_ONLY)
check_type_size("PQOS_FLOWID" HAS_PQOS_FLOWID BUILTIN_TYPES_ONLY)
check_type_size("QOS_FLOWID" HAVE_QOS_FLOWID BUILTIN_TYPES_ONLY)
check_type_size("PQOS_FLOWID" HAVE_PQOS_FLOWID BUILTIN_TYPES_ONLY)
unset(CMAKE_EXTRA_INCLUDE_FILES)

if(HAS_QOS_FLOWID)
list(APPEND RE_DEFINITIONS HAS_QOS_FLOWID)
if(HAVE_QOS_FLOWID)
list(APPEND RE_DEFINITIONS HAVE_QOS_FLOWID)
endif()

if(HAS_PQOS_FLOWID)
list(APPEND RE_DEFINITIONS HAS_PQOS_FLOWID)
if(HAVE_PQOS_FLOWID)
list(APPEND RE_DEFINITIONS HAVE_PQOS_FLOWID)
endif()
endif()

Expand Down
4 changes: 2 additions & 2 deletions src/udp/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
#include <re_sa.h>
#include <re_udp.h>
#ifdef WIN32
#ifndef HAS_QOS_FLOWID
#ifndef HAVE_QOS_FLOWID
typedef UINT32 QOS_FLOWID;
#endif

#ifndef HAS_PQOS_FLOWID
#ifndef HAVE_PQOS_FLOWID
typedef UINT32 *PQOS_FLOWID;
#endif

Expand Down

0 comments on commit 4ada582

Please sign in to comment.