Identify type of executable in Windows

For Windows, this just uses the RUNTIME_PORT_ID hook that was already in the code
to identify which executable you are running

Mike
This commit is contained in:
nethack.allison
2012-01-15 19:11:41 +00:00
parent ead5101e0a
commit bf106e38f2
2 changed files with 35 additions and 0 deletions

View File

@@ -109,6 +109,10 @@ extern void FDECL(interject, (int));
# endif
#endif
#define RUNTIME_PORT_ID /* trigger run-time port identification for
* identification of exe CPU architecture
*/
/* The following is needed for prototypes of certain functions */
#if defined(_MSC_VER)
#include <process.h> /* Provides prototypes of exit(), spawn() */