/* logs */
XBT_LOG_NEW_DEFAULT_CATEGORY(tesh,"TEst SHell utility");
-#ifdef WIN32
+#ifdef _XBT_WIN32
/* Windows specific : the previous process error mode */
static UINT
prev_error_mode = 0;
static int
sig_int = 0;
-#ifdef WIN32
+#ifdef _XBT_WIN32
static void
sig_int_handler(int signum)
{
/* then, finalize tesh (release all the allocated memory and exits) */
finalize();
- #ifndef WIN32
+ #ifndef _XBT_WIN32
return exit_code;
#endif
char* buffer;
char* suffix = strdup(".tesh");
- #ifdef WIN32
+ #ifdef _XBT_WIN32
/* Windows specific : don't display the general-protection-fault message box and
* the the critical-error-handler message box (instead the system send the error
* to the calling process : tesh)
xbt_os_sem_destroy(units_sem);
/* Windows specific (restore the previouse error mode */
- #ifdef WIN32
+ #ifdef _XBT_WIN32
SetErrorMode(prev_error_mode);
#endif
/* get to the last / (if any) to get the short name of the file */
delimiter = strrchr(optarg,'/');
- #ifdef WIN32
+ #ifdef _XBT_WIN32
if(!delimiter)
delimiter = strrchr(optarg,'\\');
#endif
delimiter = strrchr(optarg,'/');
- #ifdef WIN32
+ #ifdef _XBT_WIN32
if(!delimiter)
delimiter = strrchr(optarg,'\\');
#endif
delimiter = strrchr(optarg,'/');
- #ifdef WIN32
+ #ifdef _XBT_WIN32
if(!delimiter)
delimiter = strrchr(optarg,'\\');
#endif
if(!screen_cleaned)
{
- #ifdef WIN32
+ #ifdef _XBT_WIN32
system("cls");
#else
system("clear");
{
if(!screen_cleaned)
{
- #ifdef WIN32
+ #ifdef _XBT_WIN32
system("cls");
#else
system("clear");