loader/loader.cpp
changeset 2479 44e8e76d4e53
parent 2400 76b7b4575e21
parent 2471 194be299b700
child 2583 d3b2571c378b
     1.1 --- a/loader/loader.cpp	Sun Dec 28 03:15:15 2008 -0500
     1.2 +++ b/loader/loader.cpp	Sun Dec 28 03:23:45 2008 -0500
     1.3 @@ -33,7 +33,7 @@
     1.4  #include <stdarg.h>
     1.5  #include <string.h>
     1.6  #include <stdio.h>
     1.7 -#include <malloc.h>
     1.8 +#include <stdlib.h>
     1.9  
    1.10  #if defined _MSC_VER
    1.11  	#define DLL_EXPORT				extern "C" __declspec(dllexport)
    1.12 @@ -120,7 +120,7 @@
    1.13  
    1.14  	if (!(g_hCore=openlib(path)))
    1.15  	{
    1.16 -#if defined __linux__
    1.17 +#if defined __linux__ || defined __APPLE__
    1.18  		UTIL_Format(s_FailPlugin.error_buffer, 
    1.19  			sizeof(s_FailPlugin.error_buffer),
    1.20  			"%s",
    1.21 @@ -295,7 +295,7 @@
    1.22  #endif
    1.23  
    1.24  /* Overload a few things to prevent libstdc++ linking */
    1.25 -#if defined __linux__
    1.26 +#if defined __linux__ || defined __APPLE__
    1.27  extern "C" void __cxa_pure_virtual(void)
    1.28  {
    1.29  }