OSDN Git Service

fixed malloc_usable_size on Mac OS X.
authormaqiyuan <maqiyuan@users.sourceforge.jp>
Tue, 22 Jul 2014 13:56:48 +0000 (21:56 +0800)
committermaqiyuan <maqiyuan@users.sourceforge.jp>
Tue, 22 Jul 2014 13:56:48 +0000 (21:56 +0800)
src/texsourc/local.c

index 4fa5547..2e9ebe2 100644 (file)
   #define REALLOC realloc
 #endif
 
-#ifdef __ANDROID__
+#if   defined (__ANDROID__)
   #define malloc_usable_size dlmalloc_usable_size
+#elif defined (__APPLE__)
+  #define malloc_usable_size malloc_size
 #endif
 
 #if   defined (__clang__)