]> granicus.if.org Git - curl/commitdiff
parsedate: s/#if/#ifdef
authorDaniel Stenberg <daniel@haxx.se>
Wed, 31 Jan 2018 21:56:00 +0000 (22:56 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 31 Jan 2018 21:56:36 +0000 (22:56 +0100)
Reported-by: Michael Kaufmann
Bug: https://github.com/curl/curl/commit/1c39128d974666107fc6d9ea15f294036851f224#commitcomment-27246479

lib/parsedate.c

index 0dbaf36108a39e5075d30e3b536d0cbb970337c2..beaa1bbd598208d9b85239567a2d604e08ad93ff 100644 (file)
@@ -498,7 +498,7 @@ static int parsedate(const char *date, time_t *output)
 
 #if (SIZEOF_TIME_T < 5)
 
-#if HAVE_TIME_T_UNSIGNED
+#ifdef HAVE_TIME_T_UNSIGNED
   /* an unsigned 32 bit time_t can only hold dates to 2106 */
   if(yearnum > 2105) {
     *output = TIME_T_MAX;