[asterisk-scf-commits] asterisk-scf/integration/gitall.git branch "no_c++11" created.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Nov 18 18:01:44 CST 2011


branch "no_c++11" has been created
        at  c4a2e1a0c612ff1d7d6cd54858d030c1f25c56ba (commit)

- Log -----------------------------------------------------------------
commit c4a2e1a0c612ff1d7d6cd54858d030c1f25c56ba
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Fri Nov 18 17:57:10 2011 -0600

    For Windows, disable C++11 features so that IntelliSense doesn't guide developers to use features we don't currently allow with Asterisk SCF for portability reasons. Required some boost config as well to keep Boost from trying to use those same features internally. (i.e. we're telling Boost to use it's own implementations of TR1, not the standard lib version.)

diff --git a/cmake/AsteriskSCF.cmake b/cmake/AsteriskSCF.cmake
index f81450c..50c5e07 100644
--- a/cmake/AsteriskSCF.cmake
+++ b/cmake/AsteriskSCF.cmake
@@ -157,6 +157,17 @@ if(WIN32)
   #
   add_definitions(-D_WIN32_WINNT=0x0501)
 
+  # Disable C++11 support (for now).
+  # We specifically disable this because IntelliSense will otherwise 
+  # suggest operations on standard lib objects that weren't available prior
+  # to C++11. 
+  add_definitions(-D_HAS_CPP0X=0)
+  add_definitions(-DBOOST_ASIO_DISABLE_STD_SHARED_PTR=1)
+  add_definitions(-DBOOST_ASIO_DISABLE_STD_SYSTEM_ERROR=1)
+  add_definitions(-DBOOST_ASIO_DISABLE_STD_ARRAY=1)
+  add_definitions(-DBOOST_ASIO_DISABLE_STD_ATOMIC=1)
+  add_definitions(-DBOOST_NO_0X_HDR_TYPEINDEX=1)
+
   #
   # On 64 bit builds on Windows (Windows x64), projects that include
   # pjproject header files need to define the architecture to allow

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/gitall.git



More information about the asterisk-scf-commits mailing list