Skip to content
Snippets Groups Projects
Commit 197ebc14 authored by ballen4705's avatar ballen4705
Browse files

Linux s86_64: get rid of some compiler warnings on x86_64 Linux systems.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2300 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 499db925
No related branches found
No related tags found
No related merge requests found
CHANGELOG for smartmontools CHANGELOG for smartmontools
$Id: CHANGELOG,v 1.576 2006/10/20 21:56:03 chrfranke Exp $ $Id: CHANGELOG,v 1.577 2006/10/22 11:50:47 ballen4705 Exp $
The most recent version of this file is: The most recent version of this file is:
http://smartmontools.cvs.sourceforge.net/smartmontools/sm5/CHANGELOG?view=markup http://smartmontools.cvs.sourceforge.net/smartmontools/sm5/CHANGELOG?view=markup
...@@ -33,6 +33,9 @@ NOTES FOR FUTURE RELEASES: see TODO file. ...@@ -33,6 +33,9 @@ NOTES FOR FUTURE RELEASES: see TODO file.
<DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE> <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
[BA] Linux s86_64: get rid of some compiler warnings on
x86_64 Linux systems.
[CF] Windows: Added missing support for READ_LOG, ABORT_SELFTEST [CF] Windows: Added missing support for READ_LOG, ABORT_SELFTEST
and CHECK_POWER_STATE for 3ware 9000 controllers. Thanks to and CHECK_POWER_STATE for 3ware 9000 controllers. Thanks to
Greg de Valois for implementing this new ioctl in the driver. Greg de Valois for implementing this new ioctl in the driver.
......
# #
# $Id: configure.in,v 1.118 2006/08/12 05:41:13 card_captor Exp $ # $Id: configure.in,v 1.119 2006/10/22 11:50:47 ballen4705 Exp $
# #
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.50) AC_PREREQ(2.50)
...@@ -7,7 +7,7 @@ AC_INIT(smartmontools, 5.37, smartmontools-support@lists.sourceforge.net) ...@@ -7,7 +7,7 @@ AC_INIT(smartmontools, 5.37, smartmontools-support@lists.sourceforge.net)
AC_CONFIG_SRCDIR(smartctl.cpp) AC_CONFIG_SRCDIR(smartctl.cpp)
smartmontools_configure_date=`date -u +"%Y/%m/%d %T %Z"` smartmontools_configure_date=`date -u +"%Y/%m/%d %T %Z"`
smartmontools_cvs_tag=`echo '$Id: configure.in,v 1.118 2006/08/12 05:41:13 card_captor Exp $'` smartmontools_cvs_tag=`echo '$Id: configure.in,v 1.119 2006/10/22 11:50:47 ballen4705 Exp $'`
smartmontools_release_date=2006/04/12 smartmontools_release_date=2006/04/12
smartmontools_release_time="17:39:01 UTC" smartmontools_release_time="17:39:01 UTC"
...@@ -127,6 +127,10 @@ AC_SUBST(smartmontools_release_time) ...@@ -127,6 +127,10 @@ AC_SUBST(smartmontools_release_time)
dnl if OS not recognized, then use the os_generic modules dnl if OS not recognized, then use the os_generic modules
case "${host}" in case "${host}" in
x86_64-*-linux-gnu*)
AC_DEFINE_UNQUOTED(LINUX_X86_64, 1, [this is an x86_64 Linux system])
AC_SUBST([os_deps], ['os_linux.o'])
AC_SUBST([os_libs], ['']) ;;
*-*-linux-gnu*) *-*-linux-gnu*)
AC_SUBST([os_deps], ['os_linux.o']) AC_SUBST([os_deps], ['os_linux.o'])
AC_SUBST([os_libs], ['']) ;; AC_SUBST([os_libs], ['']) ;;
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#ifndef INT64_H_ #ifndef INT64_H_
#define INT64_H_ #define INT64_H_
#define INT64_H_CVSID "$Id: int64.h,v 1.13 2006/04/12 14:54:28 ballen4705 Exp $\n" #define INT64_H_CVSID "$Id: int64.h,v 1.14 2006/10/22 11:50:47 ballen4705 Exp $\n"
// 64 bit integer typedefs // 64 bit integer typedefs
...@@ -65,6 +65,16 @@ typedef unsigned long long uint64_t; ...@@ -65,6 +65,16 @@ typedef unsigned long long uint64_t;
#define PRIx64 "I64x" #define PRIx64 "I64x"
#endif // _WIN32 && _MSC_VER #endif // _WIN32 && _MSC_VER
#ifdef LINUX_X86_64
// For Linux x86_64
#undef PRId64
#undef PRIu64
#undef PRIx64
#define PRId64 "ld"
#define PRIu64 "lu"
#define PRIx64 "lx"
#endif
// If macros not defined in inttypes.h, fix here. Default is GCC // If macros not defined in inttypes.h, fix here. Default is GCC
// style // style
#ifndef PRId64 #ifndef PRId64
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment