File: 09_fix_atomic_count_header_namespace.patch

package info (click to toggle)
quickfix 1.15.1%2Bdfsg-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 42,080 kB
  • sloc: cpp: 631,686; python: 129,549; ruby: 106,716; xml: 43,737; ansic: 7,668; java: 1,826; cs: 816; makefile: 544; sh: 462; sql: 313
file content (22 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: Roberto C. Sanchez <roberto@connexer.com>
Description: Fix build failure with -DENABLE_BOOST_ATOMIC_COUNT resulting from atomic_count being included from within FIX namespace.
--- quickfix.git.orig/src/C++/AtomicCount.h
+++ quickfix.git/src/C++/AtomicCount.h
@@ -28,13 +28,16 @@
 #include "Mutex.h"
 #endif
 
+#ifdef ENABLE_BOOST_ATOMIC_COUNT
+#include <boost/smart_ptr/detail/atomic_count.hpp>
+#endif
+
 namespace FIX
 {
   /// Atomic count class - consider using interlocked functions
 
 #ifdef ENABLE_BOOST_ATOMIC_COUNT
 
-#include <boost/smart_ptr/detail/atomic_count.hpp>
 typedef boost::detail::atomic_count atomic_count;
 
 #elif _MSC_VER