Skip to content

Commit

Permalink
Fixed support for AntTweakBar in vc2019, as seen in PR cinder#2113.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhoux committed Feb 9, 2020
1 parent 35ef87a commit 71ec82c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions proj/cmake/libcinder_configure.cmake
Expand Up @@ -66,8 +66,8 @@ else()
list( APPEND CINDER_DEFINES "-DFT2_BUILD_LIBRARY;-DFT_DEBUG_LEVEL_TRACE" )
endif()

# declare whether AntTweakBar is available (isn't on mobile devices or Visual Studio 2019 and up)
if( CINDER_DISABLE_ANTTWEAKBAR OR CINDER_GL_ES OR ( CINDER_MSW AND MSVC_VERSION GREATER_EQUAL 1920 ) )
# declare whether AntTweakBar is available (isn't on mobile devices)
if( CINDER_DISABLE_ANTTWEAKBAR OR CINDER_GL_ES OR BUILD_SHARED_LIBS )
set( CINDER_ANTTWEAKBAR_ENABLED FALSE )
else()
set( CINDER_ANTTWEAKBAR_ENABLED TRUE )
Expand Down
2 changes: 1 addition & 1 deletion proj/cmake/platform_msw.cmake
Expand Up @@ -19,7 +19,7 @@ list( APPEND SRC_SET_MSW
${CINDER_SRC_DIR}/glload/wgl_load.c
)

if( NOT ( CINDER_DISABLE_ANTTWEAKBAR OR BUILD_SHARED_LIBS ) )
if( CINDER_ANTTWEAKBAR_ENABLED )
list( APPEND SRC_SET_MSW ${CINDER_SRC_DIR}/AntTweakBar/TwDirect3D11.cpp )
endif()

Expand Down
3 changes: 3 additions & 0 deletions src/AntTweakBar/TwMgr.cpp
Expand Up @@ -7,6 +7,9 @@
//
// ---------------------------------------------------------------------------

#if defined( _MSC_VER )
# define _HAS_AUTO_PTR_ETC 1
#endif

#include "TwPrecomp.h"
#include <AntTweakBar.h>
Expand Down

0 comments on commit 71ec82c

Please sign in to comment.