Browse Source

Mark this file as obsolete with an additional pragma message

bel 9 years ago
parent
commit
d781523da5
1 changed files with 6 additions and 0 deletions
  1. 6 0
      test/unit_test.c

+ 6 - 0
test/unit_test.c

@@ -20,6 +20,12 @@
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
 
 
+#if defined(_MSC_VER)
+#pragma message("Warning: " __FILE__ " is obsolete. See note below.")
+#else
+#pragma message __FILE__ ": This file is obsolete. See note below."
+#endif
+
 /* Note: The unit_test.c file is mostly obsolete, since the current unit
 /* Note: The unit_test.c file is mostly obsolete, since the current unit
  * tests are performed by the CMake build framework based on the
  * tests are performed by the CMake build framework based on the
  * CMakeList (https://github.com/civetweb/civetweb/blob/master/test/CMakeLists.txt).
  * CMakeList (https://github.com/civetweb/civetweb/blob/master/test/CMakeLists.txt).