aboutsummaryrefslogtreecommitdiff
path: root/editors/lfhex
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2005-01-19 12:47:34 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2005-01-19 12:47:34 +0000
commit69db68734fdca6e6aee34a5afdad58cb4b8408ec (patch)
tree2c0cfe4fd01e7bbd514fe63c93aa319caff297fc /editors/lfhex
parent5d7fef949954cba88c3c6b0c875db9c7db290dd9 (diff)
downloadports-69db68734fdca6e6aee34a5afdad58cb4b8408ec.tar.gz
ports-69db68734fdca6e6aee34a5afdad58cb4b8408ec.zip
Fix build on 5.x/6.x and amd64.
Notes
Notes: svn path=/head/; revision=126829
Diffstat (limited to 'editors/lfhex')
-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;
+