浏览代码

Mark this file as obsolete with an additional pragma message

bel 9 年之前
父节点
当前提交
d781523da5
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      test/unit_test.c

+ 6 - 0
test/unit_test.c

@@ -20,6 +20,12 @@
  * 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
  * tests are performed by the CMake build framework based on the
  * CMakeList (https://github.com/civetweb/civetweb/blob/master/test/CMakeLists.txt).