[Aptitude-svn-commit] r4427 - in branches/aptitude-0.3/aptitude: .
src
Daniel Burrows
dburrows at costa.debian.org
Sat Oct 1 20:40:05 UTC 2005
Author: dburrows
Date: Sat Oct 1 20:40:02 2005
New Revision: 4427
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/aptitude.h
Log:
Make the compile fail in an obvious way if configure screwed up the locale variables.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Sat Oct 1 20:40:02 2005
@@ -1,5 +1,10 @@
2005-10-01 Daniel Burrows <dburrows at debian.org>
+ * src/aptitude.h:
+
+ Instead of using #define to empty setlocale, inline it. This
+ still fails to compile, but the error is a lot more obvious.
+
* ***:
Rebuilt all of the autotools and gettext junk from scratch using
Modified: branches/aptitude-0.3/aptitude/src/aptitude.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/aptitude.h (original)
+++ branches/aptitude-0.3/aptitude/src/aptitude.h Sat Oct 1 20:40:02 2005
@@ -18,7 +18,9 @@
# include <locale.h>
#endif
#if !HAVE_SETLOCALE
-# define setlocale(Category, Locale) /* empty */
+inline void setlocale(int, const char *)
+{
+}
#endif
#if ENABLE_NLS
More information about the Aptitude-svn-commit
mailing list