X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fwin32ss%2Fpch.h;h=48ffb8ca322d4fade57287fb890e2170f75e66aa;hp=9c22f009267604e02706ad6badcea254186b4020;hb=f25d0ce42252718785a22ff72b1b3408d57167ca;hpb=20d7540340ad86f0cb1764a84a248561d7cc40ed diff --git a/reactos/win32ss/pch.h b/reactos/win32ss/pch.h index 9c22f009267..48ffb8ca322 100644 --- a/reactos/win32ss/pch.h +++ b/reactos/win32ss/pch.h @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -43,6 +44,10 @@ typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; #include #include +// Needed because windef.h messes up CDECL for whatever +#undef CDECL +#define CDECL __cdecl + /* Avoid type casting, by defining RECT to RECTL */ #define RECT RECTL #define PRECT PRECTL @@ -66,6 +71,10 @@ typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; /* SEH support with PSEH */ #include +#ifdef __cplusplus +extern "C" { +#endif + /* Public Win32K headers */ #include #include @@ -91,4 +100,8 @@ typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; /* Internal Win32K header */ #include "win32kp.h" +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* __W32K_H */