Skip to content

Commit 3a2e654

Browse files
author
Davide Faconti
committed
fix compilation issue #4
1 parent c119eaf commit 3a2e654

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

3rdparty/tinyXML2/tinyxml2.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@ distribution.
6565
#endif
6666

6767
// Do NOT export. This version is meant to be linked statically only.
68-
#ifdef _WIN32
69-
# define TINYXML2_LIB
70-
#elif __GNUC__ >= 4
71-
# define TINYXML2_LIB __attribute__((visibility("hidden")))
72-
#endif
68+
#define TINYXML2_LIB
69+
70+
7371

7472

7573
#if defined(TINYXML2_DEBUG)

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 2.8)
22
project(behavior_tree_core)
33

4-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 -pthread -Werror=return-type")
4+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread -Werror=return-type -Wall -Wpedantic -Wattributes")
55
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake")
66
#############################################################
77
# http://answers.ros.org/question/230877/optionally-build-a-package-with-catkin/

0 commit comments

Comments
 (0)