/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-20.5
Code/Engine/Texture/TexturePCH.h
17 строк
599 B
Jan Krassnigg
Adds a compile time check that ez code does not #include <Windows.h> directly (#62)
25 июн 2019, 14:28
Не верифицирован
25 июн 2019, 14:28
dbb9f88
Код
Авторство
О чём код?
#pragma once #include <Foundation/Basics.h> #include <Texture/TextureDLL.h> // auto_delete_file from scoped.h uses FILE_DISPOSITION_INFO which has a member called DeleteFile // due to the great preprocessor overloads for win32 functions, this apparently is always defined (usually as DeleteFileA) // since ez undef's DeleteFile to PREVENT such name issues, this actually now CREATES an issue, // so in this lib we need to 'fix' this again #include <Foundation/Basics/Platform/Win/IncludeWindows.h> #ifdef _UNICODE # define DeleteFile DeleteFileW #else # define DeleteFile DeleteFileA #endif