diff --git a/common/backends.h b/common/backends.h index 49be913b..19755bc0 100644 --- a/common/backends.h +++ b/common/backends.h @@ -54,7 +54,7 @@ GNU General Public License for more details. #define MSGBOX_WIN32 3 -// messageboxes (XASH_LIB) +// library loading (XASH_LIB) #define LIB_NULL 0 #define LIB_POSIX 1 #define LIB_WIN32 2 diff --git a/engine/platform/misc/lib_static.c b/engine/platform/misc/lib_static.c index 4d8d2c9e..7db5cdbd 100644 --- a/engine/platform/misc/lib_static.c +++ b/engine/platform/misc/lib_static.c @@ -1,7 +1,21 @@ -#include "platform/platform.h" -#if XASH_LIB == LIB_STATIC +/* +lib_static.c - static linking support +Copyright (C) 2018 Flying With Gauss +This program is free software: you can redistribute it and/sor modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. +*/ + +#include "platform/platform.h" + +#if XASH_LIB == LIB_STATIC #ifdef XASH_NO_LIBDL void *dlsym(void *handle, const char *symbol ) @@ -43,7 +57,6 @@ typedef struct table_s #include "generated_library_tables.h" - static void *Lib_Find(table_t *tbl, const char *name ) { while( tbl->name )