Move prototypes into help.h, after making sure that DWORD_PTR is
defined. Include help.h from winboard.c and help.c so both files
benefit from the definition.
\r
#include <windows.h>\r
#include <stdio.h>\r
+#include "help.h"
\r
FILE *debugFP;\r
\r
--- /dev/null
+#ifdef VISTA\r
+#include "htmlhelp.h"\r
+#else\r
+ #ifdef _MSC_VER\r
+ #if _MSC_VER <= 1200\r
+ #define DWORD_PTR DWORD\r
+ #endif\r
+ #endif\r
+HWND WINAPI HtmlHelp( HWND hwnd, LPCSTR helpFile, UINT action, DWORD_PTR data );\r
+#endif\r
+int MyHelp(HWND hwnd, LPSTR helpFile, UINT action, DWORD_PTR data);\r
#include "woptions.h"\r
#include "wsockerr.h"\r
#include "defaults.h"\r
-\r
+#include "help.h"\r
#include "wsnap.h"\r
\r
//void InitEngineUCI( const char * iniDir, ChessProgramState * cps );\r
void AnimateAtomicCapture(int fromX, int fromY, int toX, int toY, int nFrames);\r
void DisplayMove P((int moveNumber));\r
Boolean ParseFEN P((Board board, int *blackPlaysFirst, char *fen));\r
-#ifdef VISTA\r
-#include "htmlhelp.h"\r
-#else\r
-HWND WINAPI HtmlHelp( HWND hwnd, LPCSTR helpFile, UINT action, DWORD_PTR data );\r
-#endif\r
-\r
typedef struct {\r
ChessSquare piece; \r
POINT pos; /* window coordinates of current pos */\r