Removed duplicated code for a crash workaround in Mac OS 10.5

This commit is contained in:
Alex Szpakowski
2013-05-16 15:30:34 -03:00
parent c620553e28
commit daea857c1e
2 changed files with 0 additions and 44 deletions
-43
View File
@@ -71,49 +71,6 @@ void get_utf8_arguments(int &argc, char **&argv)
#endif // LOVE_LEGENDARY_UTF8_ARGV_HACK #endif // LOVE_LEGENDARY_UTF8_ARGV_HACK
#ifdef LOVE_LEGENDARY_LIBSTDCXX_HACK
#include <iostream>
// Workarounds for symbols that are missing from Leopard stdlibc++.dylib.
// http://stackoverflow.com/questions/3484043/os-x-program-runs-on-dev-machine-crashing-horribly-on-others
_GLIBCXX_BEGIN_NAMESPACE(std)
// From ostream_insert.h
template ostream& __ostream_insert(ostream&, const char*, streamsize);
#ifdef _GLIBCXX_USE_WCHAR_T
template wostream& __ostream_insert(wostream&, const wchar_t*, streamsize);
#endif
// From ostream.tcc
template ostream& ostream::_M_insert(long);
template ostream& ostream::_M_insert(unsigned long);
template ostream& ostream::_M_insert(bool);
#ifdef _GLIBCXX_USE_LONG_LONG
template ostream& ostream::_M_insert(long long);
template ostream& ostream::_M_insert(unsigned long long);
#endif
template ostream& ostream::_M_insert(double);
template ostream& ostream::_M_insert(long double);
template ostream& ostream::_M_insert(const void*);
#ifdef _GLIBCXX_USE_WCHAR_T
template wostream& wostream::_M_insert(long);
template wostream& wostream::_M_insert(unsigned long);
template wostream& wostream::_M_insert(bool);
#ifdef _GLIBCXX_USE_LONG_LONG
template wostream& wostream::_M_insert(long long);
template wostream& wostream::_M_insert(unsigned long long);
#endif
template wostream& wostream::_M_insert(double);
template wostream& wostream::_M_insert(long double);
template wostream& wostream::_M_insert(const void*);
#endif
_GLIBCXX_END_NAMESPACE
#endif // LOVE_LEGENDARY_LIBSTDCXX_HACK
static int love_preload(lua_State *L, lua_CFunction f, const char *name) static int love_preload(lua_State *L, lua_CFunction f, const char *name)
{ {
lua_getglobal(L, "package"); lua_getglobal(L, "package");
@@ -127,7 +127,6 @@ int w_File_write(lua_State *L)
{ {
return ioError(L, "%s", e.what()); return ioError(L, "%s", e.what());
} }
} }
else if (luax_istype(L, 2, DATA_T)) else if (luax_istype(L, 2, DATA_T))
{ {