sysdep.c (most-5.0.0a) | : | sysdep.c (most-5.1.0) | ||
---|---|---|---|---|
/* | /* | |||
This file is part of MOST. | This file is part of MOST. | |||
Copyright (c) 1991, 1999, 2002, 2005, 2006, 2007 John E. Davis | Copyright (c) 1991, 1999, 2002, 2005-2018, 2019 John E. Davis | |||
This program is free software; you can redistribute it and/or modify it | This program is free software; you can redistribute it and/or modify it | |||
under the terms of the GNU General Public License as published by the Free | under the terms of the GNU General Public License as published by the Free | |||
Software Foundation; either version 2 of the License, or (at your option) | Software Foundation; either version 2 of the License, or (at your option) | |||
any later version. | any later version. | |||
This program is distributed in the hope that it will be useful, but WITHOUT | This program is distributed in the hope that it will be useful, but WITHOUT | |||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |||
more details. | more details. | |||
skipping to change at line 68 | skipping to change at line 68 | |||
# include <sys/types.h> | # include <sys/types.h> | |||
# include <fcntl.h> | # include <fcntl.h> | |||
# endif | # endif | |||
# include <sys/file.h> | # include <sys/file.h> | |||
#endif | #endif | |||
#ifdef __os2__ | #ifdef __os2__ | |||
# include <signal.h> | # include <signal.h> | |||
#endif | #endif | |||
#ifdef __WIN32__ | ||||
#include <windows.h> | ||||
/* Sleep is defined badly in MSVC... */ | ||||
# ifdef _MSC_VER | ||||
# define sleep(n) _sleep((n)*1000) | ||||
# else | ||||
# ifdef sleep | ||||
# undef sleep | ||||
# endif | ||||
# define sleep(x) if(x)Sleep((x)*1000) | ||||
# endif | ||||
#endif | ||||
#include <string.h> | #include <string.h> | |||
#include "sysdep.h" | #include "sysdep.h" | |||
#include "display.h" | #include "display.h" | |||
#include "window.h" | #include "window.h" | |||
#include "most.h" | #include "most.h" | |||
#ifdef VMS | #ifdef VMS | |||
typedef struct | typedef struct | |||
{ | { | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 14 lines changed or added |