From 319a7460a5e8b140fb03378a51d9c07afb6478d8 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Mon, 3 Dec 2012 10:15:36 -0800 Subject: [PATCH] Fix build on Visual Studio Express. Visual Studio Express doesn't ship with MFC so the afxres.h header isn't available. Since we don't actually use it, it's safe to replace that header with a standard #include and #define. Note that Visual Studio Express also ships without mc.exe so you will also need to download the Windows SDK and set up your PATH in order to build NSSM. --- ChangeLog.txt | 2 ++ nssm.rc | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 525a3d8..727c4b0 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,5 +1,7 @@ Changes since 2.16 ----------------- + * Allow building on Visual Studio Express. + * Silently ignore INTERROGATE control. Changes since 2.15 diff --git a/nssm.rc b/nssm.rc index e05aae8..b2e539e 100644 --- a/nssm.rc +++ b/nssm.rc @@ -7,7 +7,10 @@ // // Generated from the TEXTINCLUDE 2 resource. // -#include "afxres.h" +#include +#ifndef IDC_STATIC +#define IDC_STATIC (-1) +#endif ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS -- 2.7.4