comparison src/syswindows.h @ 410:de805c49cfc1 r21-2-35

Import from CVS: tag r21-2-35
author cvs
date Mon, 13 Aug 2007 11:19:21 +0200
parents 501cfd01ee6d
children
comparison
equal deleted inserted replaced
409:301b9ebbdf3b 410:de805c49cfc1
27 */ 27 */
28 28
29 #ifndef INCLUDED_syswindows_h_ 29 #ifndef INCLUDED_syswindows_h_
30 #define INCLUDED_syswindows_h_ 30 #define INCLUDED_syswindows_h_
31 31
32 /* Note that there are currently FOUR different general
33 Windows-related include files in src!
34
35 Uses are approximately:
36
37 syswindows.h: Mostly a wrapper around <windows.h>, including missing
38 defines as necessary. Also includes stuff needed on both Cygwin and
39 native Windows, regardless of window system chosen.
40
41 console-msw.h: Used on both Cygwin and native Windows, but only when
42 native window system (as opposed to X) chosen.
43
44 nt.h: [will be renamed to win32.h] Used only on native Windows, and
45 regardless of window system chosen -- but used on both purely native
46 Windows (s/windowsnt.h) and MinGW (s/mingw32.h).
47
48 ntheap.h: Used only on native Windows and only when standard dumping
49 mechanism (unexnt.c) used.
50
51 All of the last three files include the first.
52 */
53
54 #ifndef WIN32_LEAN_AND_MEAN
55 #define WIN32_LEAN_AND_MEAN
56 #endif
57
32 #include <windows.h> 58 #include <windows.h>
33 59
34 #if (defined (__CYGWIN32__) || defined(__MINGW32__)) && \ 60 #if (defined (CYGWIN) || defined(MINGW)) && \
35 CYGWIN_VERSION_DLL_MAJOR < 21 61 CYGWIN_VERSION_DLL_MAJOR < 21
36 extern BOOL WINAPI DdeFreeStringHandle(DWORD,HSZ); 62 extern BOOL WINAPI DdeFreeStringHandle(DWORD,HSZ);
37 extern BOOL WINAPI PlaySound(LPCSTR,HMODULE,DWORD); 63 extern BOOL WINAPI PlaySound(LPCSTR,HMODULE,DWORD);
38 #define stricmp strcasecmp 64 #define stricmp strcasecmp
39 #define FONTENUMPROC FONTENUMEXPROC 65 #define FONTENUMPROC FONTENUMEXPROC
72 #ifndef PHYSICALOFFSETY 98 #ifndef PHYSICALOFFSETY
73 #define PHYSICALOFFSETY 113 99 #define PHYSICALOFFSETY 113
74 #endif 100 #endif
75 101
76 /* windows.h defines. */ 102 /* windows.h defines. */
77 #if defined (__CYGWIN32__) && (CYGWIN_VERSION_DLL_MAJOR < 20) 103 #if defined (CYGWIN) && (CYGWIN_VERSION_DLL_MAJOR < 20)
78 typedef NMHDR *LPNMHDR; 104 typedef NMHDR *LPNMHDR;
79 #endif 105 #endif
80 106
81 #ifndef SPI_GETWHEELSCROLLLINES 107 #ifndef SPI_GETWHEELSCROLLLINES
82 #define SPI_GETWHEELSCROLLLINES 104 108 #define SPI_GETWHEELSCROLLLINES 104