Ticket #19159: patch-gui-usbprogApp.cc.diff

File patch-gui-usbprogApp.cc.diff, 608 bytes (added by macports@…, 16 years ago)

made the modification conditional so that upstream can use the patch, too

  • gui/usbprogApp.cc

    old new  
    2020
    2121#include "usbprogApp.h"
    2222#include "usbprogFrm.h"
     23#ifdef __APPLE__
     24#include <ApplicationServices/ApplicationServices.h>
     25#endif
    2326
    2427using std::cerr;
    2528using std::endl;
     
    7475    usbprogFrm* frame = new usbprogFrm(NULL);
    7576    frame->Show(true);
    7677    SetTopWindow(frame);
     78#ifdef __APPLE__
     79ProcessSerialNumber PSN;
     80GetCurrentProcess(&PSN);
     81TransformProcessType(&PSN,kProcessTransformToForegroundApplication);
     82#endif
    7783    return true;
    7884}
    7985