Преглед на файлове

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.
Iain Patterson преди 11 години
родител
ревизия
319a7460a5
променени са 2 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 2 0
      ChangeLog.txt
  2. 4 1
      nssm.rc

+ 2 - 0
ChangeLog.txt

@@ -1,5 +1,7 @@
 Changes since 2.16
 -----------------
+  * Allow building on Visual Studio Express.
+
   * Silently ignore INTERROGATE control.
 
 Changes since 2.15

+ 4 - 1
nssm.rc

@@ -7,7 +7,10 @@
 //
 // Generated from the TEXTINCLUDE 2 resource.
 //
-#include "afxres.h"
+#include <windows.h>
+#ifndef IDC_STATIC
+#define IDC_STATIC (-1)
+#endif
 
 /////////////////////////////////////////////////////////////////////////////
 #undef APSTUDIO_READONLY_SYMBOLS