Files
qt5-legatus-legacy/Lts/Viewer/SituationMap/ArcGISQt5Hack/arcgisqt5hack.cpp
T
2026-08-13 18:33:10 +02:00

22 lines
429 B
C++
Executable File

/**
* @RDE_HEADER@
* Small hack to provide the missing smybol to 'typeinfo for std::bad_array_new_length@Qt_5'
* $Id$
* $HeadURL$
* $Author$
*/
#ifdef WIN32
__declspec(dllexport) int foo42(int) { return 42;} // just a dummy to get windows build running
#else
#include <new>
extern "C++"
{
__attribute__((visibility("default"))) void operator delete(void* ptr, std::size_t) noexcept
{
::operator delete(ptr);
}
}
#endif