aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2005-01-19 20:47:34 +0800
committerkrion <krion@FreeBSD.org>2005-01-19 20:47:34 +0800
commitfc09431c211237164618132063c8435abd487019 (patch)
tree45c1066c7fe7c6915737d78d873c27bd740ff216 /editors
parentacc5bb354bd7ec0ca16f23e344e976af21dc12a4 (diff)
downloadfreebsd-ports-gnome-fc09431c211237164618132063c8435abd487019.tar.gz
freebsd-ports-gnome-fc09431c211237164618132063c8435abd487019.tar.zst
freebsd-ports-gnome-fc09431c211237164618132063c8435abd487019.zip
Fix build on 5.x/6.x and amd64.
Diffstat (limited to 'editors')
-rw-r--r--editors/lfhex/files/patch-src::reader.cpp37
-rw-r--r--editors/lfhex/files/patch-src::reader.hpp42
2 files changed, 62 insertions, 17 deletions
diff --git a/editors/lfhex/files/patch-src::reader.cpp b/editors/lfhex/files/patch-src::reader.cpp
index c300dc54800a..37bf3436d51e 100644
--- a/editors/lfhex/files/patch-src::reader.cpp
+++ b/editors/lfhex/files/patch-src::reader.cpp
@@ -1,6 +1,9 @@
---- src/reader.cpp.orig Sat Jul 7 11:16:01 2001
-+++ src/reader.cpp Thu Oct 16 20:54:13 2003
-@@ -13,6 +13,7 @@
+
+$FreeBSD$
+
+--- src/reader.cpp.orig
++++ src/reader.cpp
+@@ -12,6 +12,7 @@
#include <stdexcept>
#include <algorithm>
#include <new>
@@ -8,7 +11,33 @@
// for stat:
#include <sys/types.h>
-@@ -227,7 +228,7 @@
+@@ -117,7 +118,7 @@
+ return true;
+ }
+
+-INLINE bool Reader::is_open() const
++bool Reader::is_open() const
+ {
+ return _is_open;
+ }
+@@ -195,14 +196,14 @@
+ return _offset;
+ }
+
+-INLINE off_t Reader::tell() const
++off_t Reader::tell() const
+ {
+ if(!is_open())
+ return -1;
+ return _offset;
+ }
+
+-INLINE off_t Reader::size() const
++off_t Reader::size() const
+ {
+ return _size;
+ }
+@@ -231,7 +232,7 @@
// free the page which is the furthest away from the page we are loading
// this could be trouble if off_t is unsigned!
diff --git a/editors/lfhex/files/patch-src::reader.hpp b/editors/lfhex/files/patch-src::reader.hpp
index 04c8e0efa058..0fcce18f0154 100644
--- a/editors/lfhex/files/patch-src::reader.hpp
+++ b/editors/lfhex/files/patch-src::reader.hpp
@@ -1,18 +1,34 @@
---- src/reader.hpp.orig Fri Feb 13 13:28:32 2004
-+++ src/reader.hpp Sat Dec 18 01:46:26 2004
-@@ -34,9 +34,13 @@
+
+$FreeBSD$
+
+--- src/reader.hpp.orig
++++ src/reader.hpp
+@@ -33,12 +33,6 @@
+
#include "local.h"
- #ifdef DEBUG
+-#ifdef DEBUG
-#define INLINE
-+# define INLINE
- #else
+-#else
-#define INLINE inline
-+# if defined(__GNUC__) && __GNUC__ == 3 && __GNUC_MINOR__ >= 1
-+# define INLINE __attribute__((always_inline))
-+# else
-+# define INLINE inline
-+# endif
- #endif
-
+-#endif
+-
typedef vector<uchar> ReadBuffer;
+
+ #ifdef __GNUC__
+@@ -54,12 +48,12 @@
+ bool open(const string& filename);
+ bool close();
+ bool eof();
+- INLINE bool is_open() const;
++ bool is_open() const;
+
+ size_t read( ReadBuffer& v, size_t numBytes );
+ off_t seek( off_t offset );
+- INLINE off_t tell() const; // returns the current offset or -1 if !open
+- INLINE off_t size() const;
++ off_t tell() const; // returns the current offset or -1 if !open
++ off_t size() const;
+ const char* lastError() const;
+ const char* filename() const;
+