stdafx.h 673 B

1234567891011121314151617181920212223242526272829303132
  1. // stdafx.h : 标准系统包含文件的包含文件,
  2. // 或是经常使用但不常更改的
  3. // 特定于项目的包含文件
  4. //
  5. #pragma once
  6. #include "targetver.h"
  7. #define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的信息
  8. // Windows 头文件:
  9. #include <windows.h>
  10. //谷歌日志库
  11. #define GOOGLE_GLOG_DLL_DECL
  12. #define GLOG_NO_ABBREVIATED_SEVERITIES
  13. #include "glog/logging.h"
  14. #ifdef DEBUG
  15. #pragma comment(lib, "glog/libglog_static_d.lib")
  16. #else
  17. #pragma comment(lib, "glog/libglog_static.lib")
  18. #endif // DEBUG
  19. //显示调用
  20. #ifdef UDP_NET_DLL
  21. #define UDP_NET_CLASS __declspec(dllexport)
  22. #else
  23. #define UDP_NET_CLASS __declspec(dllimport)
  24. #endif
  25. // TODO: 在此处引用程序需要的其他头文件