[anjuta-extras] scintilla: bgo #631157 - unix is not defined on OpenBSD



commit 3ca1322ec91439f9254f67e43d2558d36e98f4af
Author: Antoine Jacoutot <ajacoutot openbsd org>
Date:   Sun Jul 24 18:08:53 2011 +0200

    scintilla: bgo #631157 - unix is not defined on OpenBSD

 plugins/scintilla/FilePath.cxx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/scintilla/FilePath.cxx b/plugins/scintilla/FilePath.cxx
index cbbb907..cb9ebae 100644
--- a/plugins/scintilla/FilePath.cxx
+++ b/plugins/scintilla/FilePath.cxx
@@ -23,7 +23,7 @@
 #include "PropSet.h"
 #include "FilePath.h"
 
-#ifdef unix
+#ifdef __unix__
 const char pathSepString[] = "/";
 const char pathSepChar = '/';
 const char listSepString[] = ":";
@@ -110,7 +110,7 @@ bool FilePath::IsUntitled() const {
 bool FilePath::IsAbsolute() const {
 	if (fileName.length() == 0)
 		return false;
-#ifdef unix
+#ifdef __unix__
 	if (fileName[0] == '/')
 		return true;
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]