1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/biology/plink/files/patch-plink__common.h
Jason W. Bacon 3001cc8b83 biology/plink: Whole genome association analysis toolset
Reversed removal, commit r471892 2018/06/07
Upgraded to 1.90 beta 6.17

PR:             ports/243733
Submitted by:   mzaki@e-mail.ne.jp
2020-05-04 23:01:57 +00:00

21 lines
712 B
C

--- plink_common.h.orig 2020-01-22 01:51:56 UTC
+++ plink_common.h
@@ -122,7 +122,7 @@
#define EOLN_STR "\n"
#define FOPEN_RB "r"
#define FOPEN_WB "w"
- #ifndef __APPLE__
+ #if !defined(__APPLE__) && !defined(__FreeBSD__)
// argh
// not sure what the right threshold actually is, but this works for now
// (may break on gcc <3.0? but that shouldn't matter anymore)
@@ -143,7 +143,7 @@
#define CLZLU __builtin_clzl
#ifndef __LP64__
// attempt to patch GCC 6 build failure
- #if (__GNUC__ <= 4) && (__GNUC_MINOR__ < 8)
+ #if !defined(__FreeBSD__) && (__GNUC__ <= 4) && (__GNUC_MINOR__ < 8)
#ifndef uintptr_t
#define uintptr_t unsigned long
#endif