mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-04 06:24:48 +08:00
cmake: move two windows #defines to the main cmake file
We have a check for windows here anyway, let's move the defines here and we can drop it in the common header file. And since on Unix HAVE_CONFIG_H is always defined, we can drop the else condition too.
This commit is contained in:
@@ -18,13 +18,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined(_WIN32)
|
||||
# define SYSAPI_WIN32 1
|
||||
# define WINAPI_MSWINDOWS 1
|
||||
#elif HAVE_CONFIG_H
|
||||
#if HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#else
|
||||
# error "config.h missing"
|
||||
#endif
|
||||
|
||||
// VC++ has built-in sized types
|
||||
|
||||
Reference in New Issue
Block a user