adopt for new MinGW
This commit is contained in:
@@ -20,17 +20,19 @@
|
||||
|
||||
#include "piincludes_p.h"
|
||||
#include "piliterals_time.h"
|
||||
// clang-format off
|
||||
#ifndef WINDOWS
|
||||
# include <fcntl.h>
|
||||
# include <sys/ioctl.h>
|
||||
# include <termios.h>
|
||||
#else
|
||||
# include <wincon.h>
|
||||
# include <wingdi.h>
|
||||
# include <wincon.h>
|
||||
# ifndef COMMON_LVB_UNDERSCORE
|
||||
# define COMMON_LVB_UNDERSCORE 0x8000
|
||||
# endif
|
||||
#endif
|
||||
// clang-format on
|
||||
|
||||
|
||||
using namespace PIScreenTypes;
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include "pisharedmemory.h"
|
||||
#ifndef MICRO_PIP
|
||||
# ifdef WINDOWS
|
||||
# include <wincon.h>
|
||||
# include <windows.h>
|
||||
# include <wingdi.h>
|
||||
# include <winuser.h>
|
||||
|
||||
@@ -21,12 +21,14 @@
|
||||
#include "piincludes_p.h"
|
||||
#include "piliterals.h"
|
||||
#include "piwaitevent_p.h"
|
||||
// clang-format off
|
||||
#ifndef WINDOWS
|
||||
# include <termios.h>
|
||||
#else
|
||||
# include <wincon.h>
|
||||
# include <wingdi.h>
|
||||
# include <wincon.h>
|
||||
#endif
|
||||
// clang-format on
|
||||
|
||||
/** \class PIKbdListener
|
||||
* \brief Keyboard console input listener
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
#include <atomic>
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <cstdio>
|
||||
#include <functional>
|
||||
#include <initializer_list>
|
||||
#include <limits>
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
# include <locale>
|
||||
#endif
|
||||
#ifdef WINDOWS
|
||||
# include <wincon.h>
|
||||
# include <windows.h>
|
||||
# include <wingdi.h>
|
||||
# define COMMON_LVB_UNDERSCORE 0x8000
|
||||
|
||||
@@ -31,8 +31,10 @@ int main(int argc, char * argv[]) {
|
||||
# include "piscreentypes.h"
|
||||
# include "pisharedmemory.h"
|
||||
|
||||
# include <wincon.h>
|
||||
// clang-format off
|
||||
# include <wingdi.h>
|
||||
# include <wincon.h>
|
||||
// clang-format on
|
||||
|
||||
|
||||
PIVector<PIVector<PIScreenTypes::Cell>> cells;
|
||||
|
||||
Reference in New Issue
Block a user