Ticket #23556: platform-misc-cpp.diff

File platform-misc-cpp.diff, 562 bytes (added by pepijndevos@…, 15 years ago)
  • rts/System/Platform/Misc.cpp

    old new  
    99#include <shlwapi.h>
    1010#include "System/Platform/Win/WinVersion.h"
    1111
    12 #elif MACOSX_BUNDLE
     12#elif __APPLE__
    1313#include <CoreFoundation/CoreFoundation.h>
    1414#include <dlfcn.h> // for dladdr(), dlopen()
    1515#include <mach-o/dyld.h>
     
    5050        {
    5151                char pathReal[PATH_MAX];
    5252                realpath(path, pathReal);
    53                 procExeFilePath = std::string(pathReal);
     53                return std::string(pathReal);
    5454        }
    5555#else
    5656        return "";