[Lldb-commits] [lldb] r229664 - Fix some warnings in MSVC build.
Hafiz Abid Qadeer
hafiz_abid at mentor.com
Wed Feb 18 03:12:16 PST 2015
Author: abidh
Date: Wed Feb 18 05:12:11 2015
New Revision: 229664
URL: http://llvm.org/viewvc/llvm-project?rev=229664&view=rev
Log:
Fix some warnings in MSVC build.
Platform.h was causing soem warning due to multiple defined maros.
It already has a define that excludes the singal.h but that was not being
used at correct place. It has been fixed now.
Tested by building on Windows(MSVC) and Linux(gcc).
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=229664&r1=229663&r2=229664&view=diff
==============================================================================
--- lldb/trunk/tools/driver/Platform.h (original)
+++ lldb/trunk/tools/driver/Platform.h Wed Feb 18 05:12:11 2015
@@ -10,12 +10,11 @@
#ifndef lldb_Platform_h_
#define lldb_Platform_h_
-#include "lldb/Host/HostGetOpt.h"
-
#if defined( _WIN32 )
// this will stop signal.h being included
#define _INC_SIGNAL
+ #include "lldb/Host/HostGetOpt.h"
#include <io.h>
#if defined( _MSC_VER )
#include <eh.h>
@@ -93,7 +92,7 @@
extern int tcgetattr( int fildes, struct termios *termios_p );
#else
-
+ #include "lldb/Host/HostGetOpt.h"
#include <inttypes.h>
#include <libgen.h>
More information about the lldb-commits
mailing list