Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7439 in orxonox.OLD


Ignore:
Timestamp:
Apr 29, 2006, 2:50:42 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/signals also compiling on WIndows

Location:
branches/signals/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/signals/src/util/signal_handler.cc

    r7366 r7439  
    1515
    1616#include "signal_handler.h"
     17
     18#ifndef __WIN32__
    1719
    1820SignalHandler * SignalHandler::singletonRef = NULL;
     
    109111}
    110112
     113#endif /* __WIN32__ */
  • branches/signals/src/util/signal_handler.h

    r7361 r7439  
    99#include <list>
    1010#include <string>
    11 #include <signal.h>
    1211
    1312#define GDB_BT_FILE "orxonox.backtrace"
     13
     14enum GdbRunType{
     15  GDB_RUN_WRITE_TO_FILE = 1,
     16  GDB_RUN_IN_FOREGROUND
     17};
     18
     19
     20#ifndef __WIN32__
     21#include <signal.h>
    1422
    1523struct SignalRec
     
    1927};
    2028
     29
    2130typedef std::list<SignalRec> SignalRecList;
    22 
    23 enum GdbRunType{
    24   GDB_RUN_WRITE_TO_FILE = 1,
    25   GDB_RUN_IN_FOREGROUND
    26 };
    2731
    2832class SignalHandler
     
    5054};
    5155
     56#else /* if defined __WIN32__ */
     57class SignalHandler
     58{
     59  inline static SignalHandler* getInstance() {};
     60  void doCatch( std::string appName, GdbRunType type = GDB_RUN_WRITE_TO_FILE ) {};
     61  void dontCatch() {};
     62};
     63#endif
    5264
    5365#endif /* _SIGNAL_HANDLER_H */
Note: See TracChangeset for help on using the changeset viewer.