fix new DMD import warnings

This commit is contained in:
Vadim Lopatin 2016-04-11 14:04:32 +03:00
parent 40b15f77c1
commit ae1598b977
2 changed files with 2 additions and 0 deletions

View File

@ -471,6 +471,7 @@ class FreeTypeFont : Font {
private derelict.util.exception.ShouldThrow missingSymFunc( string symName ) {
import std.algorithm : equal;
static import derelict.util.exception;
foreach(s; ["FT_New_Face", "FT_Attach_File", "FT_Set_Pixel_Sizes",
"FT_Get_Char_Index", "FT_Load_Glyph", "FT_Done_Face",
"FT_Init_FreeType", "FT_Done_FreeType"]) {

View File

@ -50,6 +50,7 @@ static if (ENABLE_OPENGL) {
private derelict.util.exception.ShouldThrow missingSymFunc( string symName ) {
import std.algorithm : equal;
static import derelict.util.exception;
foreach(s; ["SDL_DestroyRenderer", "SDL_GL_DeleteContext", "SDL_DestroyWindow", "SDL_PushEvent",
"SDL_GL_SetAttribute", "SDL_GL_CreateContext", "SDL_GetError",
"SDL_CreateWindow", "SDL_CreateRenderer", "SDL_GetWindowSize",