aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktor Szakats <vszakats@users.noreply.github.com>2017-08-21 22:14:33 +0000
committerJay Satiro <raysatiro@yahoo.com>2017-08-22 02:24:09 -0400
commitebf46317ee6f9174748fd587c9137270f35704e7 (patch)
tree8c5339d5b7c68d455a7acc07848c80b60f8844a4
parentb93954261dfb45a0d4016cda2e02abdf5ba55a6c (diff)
config-win32: define SIZEOF_LONG
Recent changes that replaced CURL_SIZEOF_LONG in the source with SIZEOF_LONG broke builds that use the premade configuration files and don't have SIZEOF_LONG defined. Closes https://github.com/curl/curl/pull/1814
-rw-r--r--lib/config-win32.h3
-rw-r--r--lib/config-win32ce.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h
index 3d7892fec..00191fe4c 100644
--- a/lib/config-win32.h
+++ b/lib/config-win32.h
@@ -399,6 +399,9 @@
/* Define to the size of `short', as computed by sizeof. */
#define SIZEOF_SHORT 2
+/* Define to the size of `long', as computed by sizeof. */
+#define SIZEOF_LONG 4
+
/* Define to the size of `size_t', as computed by sizeof. */
#if defined(_WIN64)
# define SIZEOF_SIZE_T 8
diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h
index eb444c585..28a15f2a1 100644
--- a/lib/config-win32ce.h
+++ b/lib/config-win32ce.h
@@ -346,6 +346,9 @@
/* The size of `short', as computed by sizeof. */
#define SIZEOF_SHORT 2
+/* Define to the size of `long', as computed by sizeof. */
+#define SIZEOF_LONG 4
+
/* The size of `size_t', as computed by sizeof. */
#if defined(_WIN64)
# define SIZEOF_SIZE_T 8