kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #22696
[PATCH 11/11] Replace GCC-specific __func__ with portable __FUNCTION__
This macro is GCC-specific and should be avoided in portable code.
---
include/common.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/common.h b/include/common.h
index b881444..5eeea09 100644
--- a/include/common.h
+++ b/include/common.h
@@ -98,6 +98,12 @@ enum pseudokeys {
#endif
+// MSVC doesn't have __func__
+#ifdef _MSC_VER
+#define __func__ __FUNCTION__
+#endif
+
+
// Graphic Texts Orientation in 0.1 degree
#define TEXT_ORIENT_HORIZ 0
#define TEXT_ORIENT_VERT 900
Follow ups
References
-
[PATCH 00/11] Portability series
From: Simon Richter, 2016-01-16
-
[PATCH 01/11] Avoid comparing filepos with integers
From: Simon Richter, 2016-01-16
-
[PATCH 02/11] Drop some debug output
From: Simon Richter, 2016-01-16
-
[PATCH 03/11] Clarify atan2 overloads
From: Simon Richter, 2016-01-16
-
[PATCH 04/11] Avoid cast from const_iterator to iterator
From: Simon Richter, 2016-01-16
-
[PATCH 05/11] Correct import/export of KIFACE_GETTER.
From: Simon Richter, 2016-01-16
-
[PATCH 06/11] Add missing C++ stdlib headers
From: Simon Richter, 2016-01-16
-
[PATCH 07/11] Open namespace around definitions
From: Simon Richter, 2016-01-16
-
[PATCH 08/11] Use numeric_limits for NaN constant
From: Simon Richter, 2016-01-16
-
[PATCH 09/11] Use const int instead of anonymous enum type
From: Simon Richter, 2016-01-16
-
[PATCH 10/11] Avoid conflicting declaration for Pgm()
From: Simon Richter, 2016-01-16