logplus/Workflow/WFCrystal/SysUtility/utils/include/TurtleHeader.h
2026-01-16 17:18:41 +08:00

58 lines
1.2 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* @file TurtleHeader.h
* @brief 跨平台类型定义使用此头文件自动区分Windows和linux平台并包含对应的头文件。
* @note 这个头文件会被Turtle.h包含使用者只需包含Trutle.h头文件无需特意包含此头文件。
* @date 2014-04-15
* @author Bronco
*/
#ifndef TURTLEHEADER_H_
#define TURTLEHEADER_H_
#include <iostream>
#include <string>
#include <list>
#include <map>
#include <vector>
#include <fstream>
#include <stdlib.h>
#include <memory>
#if defined(__linux__)
#include <errno.h>
#include <fcntl.h>
#include <dirent.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/stat.h>
#include <time.h>
#elif defined(WIN32)
#include <WTypes.h>
#include <windows.h>
#include <tlhelp32.h>
#include <tchar.h>
#include <ctime>
#include <io.h>
#include <direct.h>
// #include <atlbase.h>
#include <sys/stat.h>
#include <iso646.h>
#include <ctype.h>
#include <winbase.h>
#include "pthread.h"
#else
#include <errno.h>
#include <fcntl.h>
#include <dirent.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/types.h>
#include <netinet/in.h>
#endif
#endif /* TURTLEHEADER_H_ */