Commit c86a4064 authored by Andrew Innes's avatar Andrew Innes
Browse files

Undefine min, max.

parent 2e4f6477
......@@ -21,6 +21,12 @@ Boston, MA 02111-1307, USA. */
#ifndef EMACS_W32GUI_H
#define EMACS_W32GUI_H
#include <windows.h>
/* Emacs takes care of ensuring that these are defined. */
#ifdef max
#undef max
#undef min
#endif
#include "w32bdf.h"
typedef struct W32FontStruct {
......
......@@ -25,6 +25,11 @@ Boston, MA 02111-1307, USA.
#define NTHEAP_H_
#include <windows.h>
/* Emacs takes care of ensuring that these are defined. */
#ifdef max
#undef max
#undef min
#endif
#define ROUND_UP(p, align) (((DWORD)(p) + (align)-1) & ~((align)-1))
#define ROUND_DOWN(p, align) ((DWORD)(p) & ~((align)-1))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment