mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-16 00:45:48 +08:00
29 lines
609 B
C++
29 lines
609 B
C++
// stdafx.h : include file for standard system include files,
|
|
// or project specific include files that are used frequently, but
|
|
// are changed infrequently
|
|
//
|
|
#pragma once
|
|
|
|
#ifdef _MSC_VER
|
|
#include "targetver.h"
|
|
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
|
#endif
|
|
|
|
#include <string>
|
|
#include <chrono>
|
|
#include <ctime>
|
|
#include <memory>
|
|
#include <iostream>
|
|
|
|
|
|
#ifndef _MSC_VER
|
|
namespace std
|
|
{
|
|
template<typename T, typename ...Args>
|
|
std::unique_ptr<T> make_unique( Args&& ...args )
|
|
{
|
|
return std::unique_ptr<T>( new T( std::forward<Args>(args)... ) );
|
|
}
|
|
}
|
|
#endif
|