openbsd-ports/x11/gnome/anjuta-extras/patches/patch-plugins_scintilla_FilePath_cxx
2010-10-02 08:30:55 +00:00

30 lines
748 B
Plaintext

$OpenBSD: patch-plugins_scintilla_FilePath_cxx,v 1.2 2010/10/02 08:30:55 ajacoutot Exp $
--- plugins/scintilla/FilePath.cxx.orig Mon Apr 19 19:19:17 2010
+++ plugins/scintilla/FilePath.cxx Sat Oct 2 10:07:55 2010
@@ -19,11 +19,15 @@
#include <dirent.h>
#include <errno.h>
+#ifndef MAX_PATH
+#define MAX_PATH 1024
+#endif
+
#include "SString.h"
#include "PropSet.h"
#include "FilePath.h"
-#ifdef unix
+#ifdef __unix__
const char pathSepString[] = "/";
const char pathSepChar = '/';
const char listSepString[] = ":";
@@ -110,7 +114,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