aboutsummaryrefslogtreecommitdiff
path: root/apps/xclock/Clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/xclock/Clock.c')
-rw-r--r--apps/xclock/Clock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/xclock/Clock.c b/apps/xclock/Clock.c
index cbb0e4208..06361e780 100644
--- a/apps/xclock/Clock.c
+++ b/apps/xclock/Clock.c
@@ -96,6 +96,7 @@ SOFTWARE.
#include <X11/Xosdefs.h>
#include <stdio.h>
#include <X11/Xos.h>
+#include <X11\Xwinsock.h>
#include <X11/Xaw/XawInit.h>
#if !defined(NO_I18N) && defined(HAVE_ICONV)
#include <iconv.h>
@@ -140,8 +141,10 @@ extern Boolean no_locale; /* if True, use old (unlocalized) behaviour */
#define ANALOG_SIZE_DEFAULT 164
+#ifndef max
#define max(a, b) ((a) > (b) ? (a) : (b))
#define min(a, b) ((a) < (b) ? (a) : (b))
+#endif
/* #define abs(a) ((a) < 0 ? -(a) : (a)) */