]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: add our standard includes to curl_darwinssl.c and curl_multibyte.c
authorYang Tse <yangsita@gmail.com>
Wed, 27 Jun 2012 15:13:16 +0000 (17:13 +0200)
committerYang Tse <yangsita@gmail.com>
Wed, 27 Jun 2012 15:13:16 +0000 (17:13 +0200)
lib/curl_darwinssl.c
lib/curl_multibyte.c

index b98e068687ed460c1595a976dd61f595b39585a9..b9989143e6246dff9a1c558283ab7f1719e5e8a0 100644 (file)
@@ -6,6 +6,7 @@
  *                             \___|\___/|_| \_\_____|
  *
  * Copyright (C) 2012, Nick Zitzmann, <nickzman@gmail.com>.
+ * Copyright (C) 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -27,6 +28,8 @@
 
 #include "setup.h"
 
+#ifdef USE_DARWINSSL
+
 #ifdef HAVE_LIMITS_H
 #include <limits.h>
 #endif
 #include <sys/socket.h>
 #endif
 
-#ifdef USE_DARWINSSL
 #include <Security/Security.h>
 #include <Security/SecureTransport.h>
 #include <CoreFoundation/CoreFoundation.h>
 #include <CommonCrypto/CommonDigest.h>
+
 #include "urldata.h"
 #include "sendf.h"
 #include "inet_pton.h"
 #include "sslgen.h"
 #include "curl_darwinssl.h"
 
+#define _MPRINTF_REPLACE /* use our functions only */
+#include <curl/mprintf.h>
+
+#include "curl_memory.h"
+/* The last #include file should be: */
+#include "memdebug.h"
+
 /* From MacTypes.h (which we can't include because it isn't present in iOS: */
 #define ioErr -36
 
index b48c32348a5ffdac38538e23cb6c1b941b52308d..c85ec563b12abfc9986e1ef7ef6285d4ed5e327b 100644 (file)
 
 #include "curl_multibyte.h"
 
+#define _MPRINTF_REPLACE /* use our functions only */
+#include <curl/mprintf.h>
+
+#include "curl_memory.h"
+/* The last #include file should be: */
+#include "memdebug.h"
+
 wchar_t *Curl_convert_UTF8_to_wchar(const char *str_utf8)
 {
   wchar_t *str_w = NULL;