/**
 * Appcelerator Titanium - licensed under the Apache Public License 2
 * see LICENSE in the root folder for details on the license.
 * Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved.
 */

#ifndef TITANIUM_URL_H_
#define TITANIUM_URL_H_

#ifndef KEYVALUESTRUCT
typedef struct {
    char* key;
    char* value;
} KeyValuePair;
#define KEYVALUESTRUCT 1
#endif

namespace ti
{
	void NormalizeURLCallback(const char* url, char* buffer, int bufferLength);
	void URLToFileURLCallback(const char* url, char* buffer, int bufferLength);
	int CanPreprocessURLCallback(const char* url);
	char* PreprocessURLCallback(const char* url, KeyValuePair* headers, char** mimeType);
}
#endif

/**
 * Appcelerator Titanium - licensed under the Apache Public License 2
 * see LICENSE in the root folder for details on the license.
 * Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved.
 */

#ifndef TITANIUM_URL_H_
#define TITANIUM_URL_H_
namespace ti
{
	void NormalizeURLCallback(const char* url, char* buffer, int bufferLength);
	void URLToFileURLCallback(const char* url, char* buffer, int bufferLength);
	int CanPreprocessURLCallback(const char* url);
	char* PreprocessURLCallback(const char* url, KeyValuePair* headers, char** mimeType);
}
#endif

--- 
+++ 
@@ -6,6 +6,15 @@
 
 #ifndef TITANIUM_URL_H_
 #define TITANIUM_URL_H_
+
+#ifndef KEYVALUESTRUCT
+typedef struct {
+    char* key;
+    char* value;
+} KeyValuePair;
+#define KEYVALUESTRUCT 1
+#endif
+
 namespace ti
 {
 	void NormalizeURLCallback(const char* url, char* buffer, int bufferLength);
Include KeyValuePair definition, if needed.
