Created
February 15, 2013 15:45
-
-
Save davetcoleman/4961194 to your computer and use it in GitHub Desktop.
Remove warning from actionlib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/actionlib/client/simple_action_client.h b/include/actionlib/client/simple_action_client.h | |
index 653d51e..abce582 100644 | |
--- a/include/actionlib/client/simple_action_client.h | |
+++ b/include/actionlib/client/simple_action_client.h | |
@@ -46,11 +46,12 @@ | |
#include "actionlib/client/simple_client_goal_state.h" | |
#include "actionlib/client/terminal_state.h" | |
- | |
-#if defined(__GNUC__) | |
-#define DEPRECATED __attribute__((deprecated)) | |
-#else | |
-#define DEPRECATED | |
+#ifndef DEPRECATED | |
+ #if defined(__GNUC__) | |
+ #define DEPRECATED __attribute__((deprecated)) | |
+ #else | |
+ #define DEPRECATED | |
+ #endif | |
#endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment