From 0cddcdca1055bb87a019151a0c1f415aef94c45c Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Wed, 8 Mar 2017 18:49:29 +0000 Subject: [PATCH] Fix common.h: Windows doesn't use config.h --- src/lib/common/common.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/common/common.h b/src/lib/common/common.h index 3d4548f0..33d36f07 100644 --- a/src/lib/common/common.h +++ b/src/lib/common/common.h @@ -18,9 +18,10 @@ #pragma once -// this file should be included, directly or indirectly by every other. - -#if HAVE_CONFIG_H +#if defined(_WIN32) +# define SYSAPI_WIN32 1 +# define WINAPI_MSWINDOWS 1 +#elif HAVE_CONFIG_H # include "config.h" #else # error "config.h missing"