From 41b099172fc992fa0c39693c88b63b9d9e7be9b4 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 22 May 2007 18:12:05 +0200 Subject: [PATCH] port.h: Issue an error if port.h is included after the regular Wine headers. --- include/wine/port.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/wine/port.h b/include/wine/port.h index 8861408c33..6ab0627cd7 100644 --- a/include/wine/port.h +++ b/include/wine/port.h @@ -25,6 +25,10 @@ # error You must include config.h to use this header #endif +#ifdef __WINE_BASETSD_H +# error You must include port.h before all other headers +#endif + #define _FILE_OFFSET_BITS 64 #define _GNU_SOURCE /* for pread/pwrite */ #include -- 2.32.0.93.g670b81a890