Mercurial > hg > xemacs-beta
diff src/s/mingw32.h @ 404:2f8bb876ab1d r21-2-32
Import from CVS: tag r21-2-32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:16:07 +0200 |
parents | a86b2b5e0111 |
children | 501cfd01ee6d |
line wrap: on
line diff
--- a/src/s/mingw32.h Mon Aug 13 11:15:00 2007 +0200 +++ b/src/s/mingw32.h Mon Aug 13 11:16:07 2007 +0200 @@ -28,8 +28,6 @@ #define DOS_NT /* MSDOS or WINDOWSNT */ #endif -#define PBS_SMOOTH 0x01 - #ifdef HAVE_MS_WINDOWS #define HAVE_NTGUI #define HAVE_FACES @@ -51,7 +49,6 @@ #define TIME_ONESHOT 0 #define TIME_PERIODIC 1 #define LOCALE_USE_CP_ACP 0x40000000 -#define SHGFI_EXETYPE 0x2000 #define NSIG 23 #ifndef SPI_GETWHEELSCROLLLINES @@ -63,9 +60,34 @@ #ifndef WHEEL_DELTA #define WHEEL_DELTA 120 #endif + +/* this is necessary to get the TCS_* definitions in <commctrl.h> */ +#define _WIN32_IE 0x0400 + #ifndef WM_MOUSEWHEEL #define WM_MOUSEWHEEL 0x20A #endif +#ifndef TCS_BOTTOM +#define TCS_BOTTOM 0x0002 +#endif +#ifndef TCS_VERTICAL +#define TCS_VERTICAL 0x0080 +#endif +#ifndef PHYSICALWIDTH +#define PHYSICALWIDTH 110 +#endif +#ifndef PHYSICALHEIGHT +#define PHYSICALHEIGHT 111 +#endif +#ifndef PHYSICALOFFSETX +#define PHYSICALOFFSETX 112 +#endif +#ifndef PHYSICALOFFSETY +#define PHYSICALOFFSETY 113 +#endif +#ifndef PBS_SMOOTH +#define PBS_SMOOTH 0x01 +#endif /* translate NT world unexec stuff to our a.out definitions */ @@ -169,12 +191,6 @@ #include <cygwin/version.h> #endif -typedef unsigned int MMRESULT; -typedef struct timecaps_tag { - unsigned int wPeriodMin; - unsigned int wPeriodMax; -} TIMECAPS; - /* IO calls that are emulated or shadowed */ #define pipe sys_pipe int sys_pipe (int * phandles); @@ -199,11 +215,6 @@ #define popen _popen #define pclose _pclose -typedef int uid_t; -typedef int gid_t; -typedef int pid_t; -typedef int ssize_t; - /* Encapsulation of system calls */ #ifndef DONT_ENCAPSULATE #define getpid sys_getpid @@ -230,13 +241,23 @@ uid_t geteuid (void); gid_t getgid (void); gid_t getegid (void); + +#if CYGWIN_VERSION_DLL_MAJOR <= 21 +#define _ftime ftime #define _timeb timeb +#endif /* Stuff that gets set wrongly or otherwise */ #define HAVE_SETITIMER #define HAVE_GETTIMEOFDAY #define HAVE_SELECT /*#define HAVE_STRUCT_UTIMBUF*/ +#ifndef HAVE_H_ERRNO +#define HAVE_H_ERRNO +#endif +#ifndef HAVE_TZNAME +#define HAVE_TZNAME +#endif #undef GETTIMEOFDAY_ONE_ARGUMENT #undef HAVE_SYS_WAIT_H