mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
remove a redundant "static" that caused builds with gcc-like
compilers on big-endian systems to fail
This commit is contained in:
parent
6897fe6d9c
commit
eb0848769e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=290537
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME?= distorm
|
||||
DISTVERSION= 20110707-r193
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= devel
|
||||
.if defined(PYTHON_SLAVEPORT)
|
||||
CATEGORIES+= python
|
||||
@ -60,14 +61,11 @@ PLIST_FILES= bin/disasm \
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
||||
.if ${ARCH} == "sparc64"
|
||||
PICFLAG?= -fPIC
|
||||
.else
|
||||
PICFLAG?= -fpic
|
||||
.endif
|
||||
.if ${ARCH} == "powerpc"
|
||||
BROKEN= Does not compile on powerpc
|
||||
.endif
|
||||
|
||||
.if defined(PYTHON_SLAVEPORT)
|
||||
post-extract:
|
||||
|
54
devel/distorm/files/patch-src__config.h
Normal file
54
devel/distorm/files/patch-src__config.h
Normal file
@ -0,0 +1,54 @@
|
||||
--- src/config.h.orig 2011-06-14 14:58:29.000000000 -0400
|
||||
+++ src/config.h 2011-12-28 00:17:59.000000000 -0500
|
||||
@@ -133,27 +133,51 @@
|
||||
* These functions can read from the stream safely!
|
||||
* Swap endianity of input to little endian.
|
||||
*/
|
||||
+#ifdef __GNUC__
|
||||
+_INLINE_ int16_t RSHORT(const uint8_t *s)
|
||||
+#else
|
||||
static _INLINE_ int16_t RSHORT(const uint8_t *s)
|
||||
+#endif
|
||||
{
|
||||
return s[0] | (s[1] << 8);
|
||||
}
|
||||
+#ifdef __GNUC__
|
||||
+_INLINE_ uint16_t RUSHORT(const uint8_t *s)
|
||||
+#else
|
||||
static _INLINE_ uint16_t RUSHORT(const uint8_t *s)
|
||||
+#endif
|
||||
{
|
||||
return s[0] | (s[1] << 8);
|
||||
}
|
||||
+#ifdef __GNUC__
|
||||
+_INLINE_ int32_t RLONG(const uint8_t *s)
|
||||
+#else
|
||||
static _INLINE_ int32_t RLONG(const uint8_t *s)
|
||||
+#endif
|
||||
{
|
||||
return s[0] | (s[1] << 8) | (s[2] << 16) | (s[3] << 24);
|
||||
}
|
||||
+#ifdef __GNUC__
|
||||
+_INLINE_ uint32_t RULONG(const uint8_t *s)
|
||||
+#else
|
||||
static _INLINE_ uint32_t RULONG(const uint8_t *s)
|
||||
+#endif
|
||||
{
|
||||
return s[0] | (s[1] << 8) | (s[2] << 16) | (s[3] << 24);
|
||||
}
|
||||
+#ifdef __GNUC__
|
||||
+_INLINE_ int64_t RLLONG(const uint8_t *s)
|
||||
+#else
|
||||
static _INLINE_ int64_t RLLONG(const uint8_t *s)
|
||||
+#endif
|
||||
{
|
||||
return s[0] | (s[1] << 8) | (s[2] << 16) | (s[3] << 24) | ((uint64_t)s[4] << 32) | ((uint64_t)s[5] << 40) | ((uint64_t)s[6] << 48) | ((uint64_t)s[7] << 56);
|
||||
}
|
||||
+#ifdef __GNUC__
|
||||
+_INLINE_ uint64_t RULLONG(const uint8_t *s)
|
||||
+#else
|
||||
static _INLINE_ uint64_t RULLONG(const uint8_t *s)
|
||||
+#endif
|
||||
{
|
||||
return s[0] | (s[1] << 8) | (s[2] << 16) | (s[3] << 24) | ((uint64_t)s[4] << 32) | ((uint64_t)s[5] << 40) | ((uint64_t)s[6] << 48) | ((uint64_t)s[7] << 56);
|
||||
}
|
Loading…
Reference in New Issue
Block a user