[Lldb-commits] [lldb] r203652 - Moved a check in HostGetOpt.h.
Hafiz Abid Qadeer
hafiz_abid at mentor.com
Wed Mar 12 03:48:20 PDT 2014
Author: abidh
Date: Wed Mar 12 05:48:19 2014
New Revision: 203652
URL: http://llvm.org/viewvc/llvm-project?rev=203652&view=rev
Log:
Moved a check in HostGetOpt.h.
It can be used in multiple files now.
Modified:
lldb/trunk/include/lldb/Host/HostGetOpt.h
lldb/trunk/source/Host/common/OptionParser.cpp
Modified: lldb/trunk/include/lldb/Host/HostGetOpt.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/HostGetOpt.h?rev=203652&r1=203651&r2=203652&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/HostGetOpt.h (original)
+++ lldb/trunk/include/lldb/Host/HostGetOpt.h Wed Mar 12 05:48:19 2014
@@ -10,6 +10,10 @@
#ifndef _MSC_VER
+#ifdef _WIN32
+#define _BSD_SOURCE // Required so that getopt.h defines optreset
+#endif
+
#include <unistd.h>
#include <getopt.h>
Modified: lldb/trunk/source/Host/common/OptionParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/OptionParser.cpp?rev=203652&r1=203651&r2=203652&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/OptionParser.cpp (original)
+++ lldb/trunk/source/Host/common/OptionParser.cpp Wed Mar 12 05:48:19 2014
@@ -8,10 +8,6 @@
//===----------------------------------------------------------------------===//
#include "lldb/Host/OptionParser.h"
-
-#if (!defined( _MSC_VER ) && defined( _WIN32 ))
-#define _BSD_SOURCE // Required so that getopt.h defines optreset
-#endif
#include "lldb/Host/HostGetOpt.h"
using namespace lldb_private;
More information about the lldb-commits
mailing list