diff options
| author | Andrew Innes | 2000-08-22 23:32:51 +0000 |
|---|---|---|
| committer | Andrew Innes | 2000-08-22 23:32:51 +0000 |
| commit | c86a406437166a1b2cbd8f5707ba70aeec8e1865 (patch) | |
| tree | a95e9dc1f37ccc65bbb69d6f86c17db257e496dc | |
| parent | 2e4f64777739a60d7362bb71795135374a954dbb (diff) | |
| download | emacs-c86a406437166a1b2cbd8f5707ba70aeec8e1865.tar.gz emacs-c86a406437166a1b2cbd8f5707ba70aeec8e1865.zip | |
Undefine min, max.
| -rw-r--r-- | src/w32gui.h | 6 | ||||
| -rw-r--r-- | src/w32heap.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/w32gui.h b/src/w32gui.h index ba7b5c584a2..fdec0ab55ba 100644 --- a/src/w32gui.h +++ b/src/w32gui.h | |||
| @@ -21,6 +21,12 @@ Boston, MA 02111-1307, USA. */ | |||
| 21 | #ifndef EMACS_W32GUI_H | 21 | #ifndef EMACS_W32GUI_H |
| 22 | #define EMACS_W32GUI_H | 22 | #define EMACS_W32GUI_H |
| 23 | #include <windows.h> | 23 | #include <windows.h> |
| 24 | /* Emacs takes care of ensuring that these are defined. */ | ||
| 25 | #ifdef max | ||
| 26 | #undef max | ||
| 27 | #undef min | ||
| 28 | #endif | ||
| 29 | |||
| 24 | #include "w32bdf.h" | 30 | #include "w32bdf.h" |
| 25 | 31 | ||
| 26 | typedef struct W32FontStruct { | 32 | typedef struct W32FontStruct { |
diff --git a/src/w32heap.h b/src/w32heap.h index d9848261f19..77004e9bcd5 100644 --- a/src/w32heap.h +++ b/src/w32heap.h | |||
| @@ -25,6 +25,11 @@ Boston, MA 02111-1307, USA. | |||
| 25 | #define NTHEAP_H_ | 25 | #define NTHEAP_H_ |
| 26 | 26 | ||
| 27 | #include <windows.h> | 27 | #include <windows.h> |
| 28 | /* Emacs takes care of ensuring that these are defined. */ | ||
| 29 | #ifdef max | ||
| 30 | #undef max | ||
| 31 | #undef min | ||
| 32 | #endif | ||
| 28 | 33 | ||
| 29 | #define ROUND_UP(p, align) (((DWORD)(p) + (align)-1) & ~((align)-1)) | 34 | #define ROUND_UP(p, align) (((DWORD)(p) + (align)-1) & ~((align)-1)) |
| 30 | #define ROUND_DOWN(p, align) ((DWORD)(p) & ~((align)-1)) | 35 | #define ROUND_DOWN(p, align) ((DWORD)(p) & ~((align)-1)) |