]> Creatis software - gdcm.git/blobdiff - CMake/gdcmTestFUNCTION.cxx
ENH: Cleanup the CMake stuff.
[gdcm.git] / CMake / gdcmTestFUNCTION.cxx
diff --git a/CMake/gdcmTestFUNCTION.cxx b/CMake/gdcmTestFUNCTION.cxx
new file mode 100644 (file)
index 0000000..db316f4
--- /dev/null
@@ -0,0 +1,20 @@
+// Minimal test for existence of __FUNCTION__ pseudo-macro
+#include <string.h>
+
+int TestFUNCTION()
+{
+#ifdef __BORLANDC__
+  #ifndef __FUNCTION__
+    #define __FUNCTION__ __FUNC__
+  #endif
+#endif
+  const char *f = __FUNCTION__;
+  int r = strcmp( "TestFUNCTION", f);
+  return r;
+}
+int main()
+{
+  return TestFUNCTION();
+}
+