Browse Source

fix some comments

pull/2/head
mittorn 5 years ago
parent
commit
94fc0febc7
  1. 2
      common/backends.h
  2. 19
      engine/platform/misc/lib_static.c

2
common/backends.h

@ -54,7 +54,7 @@ GNU General Public License for more details. @@ -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

19
engine/platform/misc/lib_static.c

@ -1,7 +1,21 @@ @@ -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 @@ -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 )

Loading…
Cancel
Save