From 5d308865d0783d0cd70f7453c77980835ac5648e Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Wed, 21 Mar 2018 14:16:02 +0100 Subject: update android-sdk. Now it is possible to compile with clang Change-Id: I156aa48dd90467a2a7540eec11839c0111b13bd2 Signed-off-by: Angelo Mantellini --- external/libxml2_android/jni/libxml2/testModule.c | 82 ----------------------- 1 file changed, 82 deletions(-) delete mode 100644 external/libxml2_android/jni/libxml2/testModule.c (limited to 'external/libxml2_android/jni/libxml2/testModule.c') diff --git a/external/libxml2_android/jni/libxml2/testModule.c b/external/libxml2_android/jni/libxml2/testModule.c deleted file mode 100644 index 77b7ba10..00000000 --- a/external/libxml2_android/jni/libxml2/testModule.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * testModule.c : a small tester program for xmlModule - * - * See Copyright for the status of this software. - * - * joelwreed@comcast.net - */ - -#include "libxml.h" -#ifdef LIBXML_MODULES_ENABLED -#include - -#include -#include -#include -#include - -#include -#include -#include - -#ifdef _WIN32 -#define MODULE_PATH "." -#include /* for _MAX_PATH */ -#ifndef __MINGW32__ -#define PATH_MAX _MAX_PATH -#endif -#else -#define MODULE_PATH ".libs" -#endif - -/* Used for SCO Openserver*/ -#ifndef PATH_MAX -#ifdef _POSIX_PATH_MAX -#define PATH_MAX _POSIX_PATH_MAX -#else -#define PATH_MAX 4096 -#endif -#endif - -typedef int (*hello_world_t)(void); - -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - xmlChar filename[PATH_MAX]; - xmlModulePtr module = NULL; - hello_world_t hello_world = NULL; - - /* build the module filename, and confirm the module exists */ - xmlStrPrintf(filename, sizeof(filename), - "%s/testdso%s", - (const xmlChar*)MODULE_PATH, - (const xmlChar*)LIBXML_MODULE_EXTENSION); - - module = xmlModuleOpen((const char*)filename, 0); - if (module) - { - if (xmlModuleSymbol(module, "hello_world", (void **) &hello_world)) { - fprintf(stderr, "Failure to lookup\n"); - return(1); - } - if (hello_world == NULL) { - fprintf(stderr, "Lookup returned NULL\n"); - return(1); - } - - (*hello_world)(); - - xmlModuleClose(module); - } - - xmlMemoryDump(); - - return(0); -} - -#else -#include -int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { - printf("%s : Module support not compiled in\n", argv[0]); - return(0); -} -#endif /* LIBXML_SCHEMAS_ENABLED */ -- cgit 1.2.3-korg