QTmsvc加速编译并解决utf-8 预编译头文件 stable.h

#ifndef STABLE_H
#define STABLE_H

/*
Useage:
CONFIG += precompile_header
PRECOMPILED_HEADER += stable.h
*/

#include 
#include 

#ifdef _MSC_VER
#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#pragma warning (disable:4819)
#endif // _MSC_VER >= 1600
#endif // _MSC_VER

#endif // STABLE_H

注意: Qt Creator -> Options -> Text Editor -> Behavior -> File Encodings 更改设置为 "UTF-8" "Add If Encoding Is UTF-8"

转载于:https://my.oschina.net/flywuya/blog/1600004

你可能感兴趣的:(QTmsvc加速编译并解决utf-8 预编译头文件 stable.h)