mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-03 20:37:50 +08:00
35 lines
583 B
C++
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 */ |