File: 100-bugfix-LOGCXX-284.dpatch

package info (click to toggle)
log4cxx 0.10.0-1.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 16,800 kB
  • ctags: 6,258
  • sloc: cpp: 33,923; sh: 8,852; xml: 4,684; makefile: 568; java: 48
file content (19 lines) | stat: -rw-r--r-- 905 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh /usr/share/dpatch/dpatch-run
## 100-bugfix-LOGCXX-284.dpatch by  <matthew@localhost>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixes build error on AIX with xlc_r

@DPATCH@
diff -urNad log4cxx-0.10.0~/src/test/cpp/helpers/datetimedateformattestcase.cpp log4cxx-0.10.0/src/test/cpp/helpers/datetimedateformattestcase.cpp
--- log4cxx-0.10.0~/src/test/cpp/helpers/datetimedateformattestcase.cpp	2008-03-31 15:33:09.000000000 -0700
+++ log4cxx-0.10.0/src/test/cpp/helpers/datetimedateformattestcase.cpp	2008-07-17 06:49:43.000000000 -0700
@@ -181,7 +181,7 @@
         //  output the using STL
         //
         std::basic_ostringstream<logchar> buffer;
-#if defined(_USEFAC)
+#if defined(_MSC_VER) && _MSC_VER < 1300
          _USEFAC(locale, std::time_put<logchar>)
              .put(buffer, buffer, &date, fmt.c_str(), fmt.c_str() + fmt.length());
 #else