aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Utils.h
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-03-18 16:34:43 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-05-02 14:53:06 +0200
commit72386e1718da8ccd1eb42bf1e8565b8f411cfc38 (patch)
treecc64beec50e426a98856c3b9415d1a846f1f8524 /nx-X11/programs/Xserver/hw/nxagent/Utils.h
parent7d3d47f1f298e4f2e0c45a2beab089978bd7d407 (diff)
downloadnx-libs-72386e1718da8ccd1eb42bf1e8565b8f411cfc38.tar.gz
nx-libs-72386e1718da8ccd1eb42bf1e8565b8f411cfc38.tar.bz2
nx-libs-72386e1718da8ccd1eb42bf1e8565b8f411cfc38.zip
hw/nxagent/Screen.c: Correctly use already defined MIN/MAX macros.
Use MIN(A,B) macro as defined in Utils.h. Add MAX(A,B) macro in Utils.h, as well. Don't have another set of MIN/MAX macro definitions in Screen.c. Amends the following compiler warnings: ``` Screen.c:3600:0: warning: "MIN" redefined #define MIN(a,b) ((a) < (b)) ? (a) : (b); ^ In file included from Screen.c:78:0: Utils.h:36:0: note: this is the location of the previous definition #define MIN(A, B) ( (A) < (B) ? (A) : (B) ) ^ ```
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Utils.h')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Utils.h b/nx-X11/programs/Xserver/hw/nxagent/Utils.h
index f5bd55d8b..ef8c4c714 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Utils.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Utils.h
@@ -36,4 +36,8 @@
#define MIN(A, B) ( (A) < (B) ? (A) : (B) )
#endif
+#ifndef MAX
+#define MAX(A, B) ( (A) > (B) ? (A) : (B) );
+#endif
+
#endif /* __Utils_H__ */