1 |
During closer investigation I found that it alos changes data width and |
2 |
similar. probably something which should be checked during configure. |
3 |
|
4 |
I attached some code as example: |
5 |
|
6 |
|
7 |
from configure: |
8 |
|
9 |
AC_ARG_ENABLE(64, |
10 |
AS_HELP_STRING([--enable-64], [64 bit pointers])) |
11 |
if test "${enable_64}" = "yes" ; then |
12 |
AC_MSG_CHECKING(for 64bit compilation support) |
13 |
|
14 |
dnl Test for Linux 64 bit |
15 |
|
16 |
if test "`uname`" = "Linux"; then |
17 |
CPPFLAGS="-DAJ_Linux64 $CPPFLAGS" |
18 |
fi |
19 |
|
20 |
|
21 |
exmaple header: |
22 |
|
23 |
|
24 |
dnl Test for FreeBSD 64 bit |
25 |
#if !defined(AJ_LinuxLF) && !defined(AJ_SolarisLF) && |
26 |
!defined(AJ_IRIXLF) && !defined(AJ_AIXLF) && !defined(AJ_HPUXLF) && |
27 |
!defined(AJ_MACOSXLF) && !defined(AJ_FreeBSDLF) && !defined(WIN32) |
28 |
typedef int ajint; |
29 |
typedef long ajlong; |
30 |
typedef unsigned int ajuint; |
31 |
typedef short ajshort; |
32 |
typedef unsigned short ajushort; |
33 |
typedef unsigned long ajulong; |
34 |
#endif |
35 |
|
36 |
|
37 |
#ifdef AJ_LinuxLF |
38 |
#define HAVE64 |
39 |
typedef int ajint; |
40 |
typedef long long ajlong; |
41 |
typedef unsigned int ajuint; |
42 |
typedef short ajshort; |
43 |
typedef unsigned short ajushort; |
44 |
typedef unsigned long long ajulong; |
45 |
#define ftell(a) ftello(a) |
46 |
#define fseek(a,b,c) fseeko(a,b,c) |
47 |
#endif |