Changeset 39:f9c840ac038d in xplcommon


Ignore:
Timestamp:
01/03/13 09:07:56 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 2 'hg:/home/ivaradi/xplane/hg/xplcommon' '/'>, 'public')
Message:

Added the possibility to distinguish between 32-bit and 64-bit Windows

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r38 r39  
    1414
    1515AM_CONDITIONAL([TARGET_API_WIN32], test $_target_win32 -eq 0)
     16AM_CONDITIONAL([TARGET_API_WIN64], test $_target_win32 -eq 0 -a "$host_cpu" = "x86_64")
    1617AM_CONDITIONAL([TARGET_API_POSIX], test $_target_win32 -ne 0)
    1718if test $_target_win32 -eq 0; then
     19   if test "$host_cpu" = "x86_64"; then
     20       AC_DEFINE([TARGET_API_WIN64], [1], [Define if the target is the 64-bit Win32 API.])
     21   fi
    1822   AC_DEFINE([TARGET_API_WIN32], [1], [Define if the target is the Win32 API.])
    1923else
  • src/xplcommon/Makefile.am

    r38 r39  
    22
    33SUBDIRS=
     4
    45if TARGET_API_POSIX
    56SUBDIRS+=posix
     
    1112SUBDIRS+=win32
    1213AM_CPPFLAGS=-DIBM
    13 AM_LDFLAGS=@XPSDK_LDFLAGS@ -lXPLM -no-undefined
     14AM_LDFLAGS=@XPSDK_LDFLAGS@ -no-undefined
     15if TARGET_API_WIN64
     16AM_LDFLAGS+=-lXPLM_64
     17else
     18AM_LDFLAGS+=-lXPLM
     19endif
    1420endif
    1521
  • src/xplcommon/config.h.in

    r37 r39  
    5050#undef TARGET_API_WIN32
    5151
     52/* Define if the target is the 64-bit Win32 API. */
     53#undef TARGET_API_WIN64
     54
    5255/* Version number of package */
    5356#undef VERSION
Note: See TracChangeset for help on using the changeset viewer.