summaryrefslogtreecommitdiff
path: root/devel/upnp104/files/patch-src::genlib::util::gmtdate.cpp
blob: 419b9a20268707977eee833054c2608fc90d28ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/genlib/util/gmtdate.cpp.orig	Fri Jun 15 08:22:16 2001
+++ src/genlib/util/gmtdate.cpp	Sat Aug  3 16:29:39 2002
@@ -41,7 +41,7 @@
 #include <stdlib.h>
 #include <ctype.h>
 #include <string.h>
-#include <values.h>
+#include <machine/limits.h>
 #include <genlib/util/gmtdate.h>
 #include <genlib/util/miscexceptions.h>
 
@@ -254,7 +254,7 @@
     
     val = (int)strtol( str, &endptr, 10 );
     
-    if ( val < 0 || val == MAXINT )
+    if ( val < 0 || val == INT_MAX )
     {
         return -1;
     }