[Lldb-commits] [lldb] r205211 - Fixing MSVC windows build. Please respect code order when ifdefing out MSVC specifics :)
Colin Riley
colin at codeplay.com
Mon Mar 31 08:48:33 PDT 2014
Author: domipheus
Date: Mon Mar 31 10:48:33 2014
New Revision: 205211
URL: http://llvm.org/viewvc/llvm-project?rev=205211&view=rev
Log:
Fixing MSVC windows build. Please respect code order when ifdefing out MSVC specifics :)
Modified:
lldb/trunk/tools/driver/Platform.h
Modified: lldb/trunk/tools/driver/Platform.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/driver/Platform.h?rev=205211&r1=205210&r2=205211&view=diff
==============================================================================
--- lldb/trunk/tools/driver/Platform.h (original)
+++ lldb/trunk/tools/driver/Platform.h Mon Mar 31 10:48:33 2014
@@ -38,6 +38,17 @@
// ioctls.h
#define TIOCGWINSZ 0x5413
+
+ // signal handler function pointer type
+ typedef void(*sighandler_t)(int);
+
+ // signal.h
+ #define SIGINT 2
+ // default handler
+ #define SIG_DFL ( (sighandler_t) -1 )
+ // ignored
+ #define SIG_IGN ( (sighandler_t) -2 )
+
// signal.h
#define SIGPIPE 13
#define SIGCONT 18
@@ -60,22 +71,7 @@
speed_t c_ospeed; // output speed
};
- #define STDIN_FILENO 0
- extern int ioctl( int d, int request, ... );
- extern int kill ( pid_t pid, int sig );
- extern int tcsetattr( int fd, int optional_actions, const struct termios *termios_p );
- extern int tcgetattr( int fildes, struct termios *termios_p );
-
- // signal handler function pointer type
- typedef void (*sighandler_t)(int);
-
- // signal.h
- #define SIGINT 2
- // default handler
- #define SIG_DFL ( (sighandler_t) -1 )
- // ignored
- #define SIG_IGN ( (sighandler_t) -2 )
#ifdef _MSC_VER
struct timeval
@@ -89,6 +85,13 @@
#define PATH_MAX MAX_PATH
#endif
+ #define STDIN_FILENO 0
+
+ extern int ioctl( int d, int request, ... );
+ extern int kill ( pid_t pid, int sig );
+ extern int tcsetattr( int fd, int optional_actions, const struct termios *termios_p );
+ extern int tcgetattr( int fildes, struct termios *termios_p );
+
#else
#include <inttypes.h>
More information about the lldb-commits
mailing list