hikyuu2/hikyuu_cpp/hikyuu/utilities/runtimeinfo.h
2019-11-10 19:45:57 +08:00

35 lines
583 B
C++

/*
* runtimeinfo.h
*
* Copyright (c) 2019 hikyuu.org
*
* Created on: 2019-10-1
* Author: fasiondog
*/
#pragma once
#ifndef HIKYUU_UTILITIES_RUNTIMEINFO_H
#define HIKYUU_UTILITIES_RUNTIMEINFO_H
#include <iostream>
#include <string>
#ifdef _WIN32
#include <windows.h>
#pragma comment(lib, "Kernel32.lib")
#endif
namespace hku {
bool supportChineseSimple();
inline bool supportChineseSimple() {
#ifdef _WIN32
return 0X0804 == GetUserDefaultUILanguage() ? true : false;
#endif
return true;
}
} /* namespace hku */
#endif /* HIKYUU_UTILITIES_RUNTIMEINFO_H */