reactos/sdk/include/psdk/afxres.h

24 lines
323 B
C
Raw Normal View History

#ifndef _AFXRES_H
#define _AFXRES_H
#ifdef __cplusplus
extern "C" {
#endif
[PSDK][AFD][VGADDI] Further build and MS PSDK compatibility fixes. - windows.h: * should define _WINDOWS_ and _INC_WINDOWS instead of _WINDOWS_H * include winresrc.h if RC_INVOKED and not NOWINRES (Wine also agrees with that) * also, some .h included from there should _not_ be included if their respective NO*** flags are defined. - batclass.h: Use correct _WINDOWS_ guard. - winsnmp.h: * should define _INC_WINSNMP instead of _WINSNMP_H * use _INC_WINDOWS instead of _WINDOWS_H - afd.h, vgaddi.h: Use the correct guards. - winnt.rh: Define the (SUB)LANG_* exactly as they are in the winnt.h, otherwise we get macro redefinition compile errors. NOTE: Ideally these .rh files should be auto-generated from their corresponding .h files. - afxres.h: Do not include the whole windows.h, but instead, only the winres.h file, and only if RC_INVOKED is defined. NOTE: Both afxres.h and winres.h do not really belong to the PSDK, but belong instead to MFC. The reason why we have them here is twofold: 1. Wine used to have also winres.h (from where we got ours). This is because the .rc resource files of some non-MFC modules were generated with Visual Studio, which always includes afxres.h for these, and the solution was to use a slightly less MFC-specific header: winres.h (Wine commit cb08c82244673f26842e7a0766de90f091b5a493). However, this winres.h has been since removed from Wine tree (Wine commit 197f4059ab2af5f13f9c56faa26e3b4af902f869). 2. Few of our modules either use afxres.h or winres.h in their resource files, and we still want to be able to compile them.
2023-11-23 14:56:42 +00:00
#ifdef RC_INVOKED
#ifndef _INC_WINDOWS
#define _INC_WINDOWS
#include "winres.h"
#endif
#endif
/* IDC_STATIC is documented in winuser.h, but not defined. */
#ifndef IDC_STATIC
#define IDC_STATIC (-1)
#endif
#ifdef __cplusplus
}
#endif
#endif