mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-24 02:40:41 +01:00
9466461ce0
* Added definitions for IRIX * Patchset to get dedicated server to compile on IRIX. * Cleaned up debug statements in wscript * Potential bug in IRIX implementation of isnan? For now just use the portable macro. * Include the platform port files in the build * Temporary execution script for setting appropriate library search paths to the right locations in the build directory. This should probably get replaced with a more permanent script at some point which lives in the same directory as the normal xash binary, or be replaced by a solution that sets the rpath during config or modifies rpath during install. * Clean up formatting and remove unneeded debugging statements * Added GPL copyright notice and description * Moved to irix platform folder and edited script * Re-introduced _inline macro * Replace spaces with tabs Co-authored-by: Xav101 <xaviernye@msn.com>
36 lines
1.0 KiB
C
36 lines
1.0 KiB
C
/*
|
|
dladdr.h - dladdr prototypes for SGI IRIX
|
|
Copyright (C) 2022 Xav101
|
|
This program is free software: you can redistribute it and/or 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.
|
|
*/
|
|
|
|
/* See engine/platform/irix/dladdr.c for the requirement for this implementation */
|
|
|
|
#ifndef DLADDR_IRIX_H
|
|
#define DLADDR_IRIX_H
|
|
|
|
#include <rld_interface.h>
|
|
#ifndef _RLD_INTERFACE_DLFCN_H_DLADDR
|
|
#define _RLD_INTERFACE_DLFCN_H_DLADDR
|
|
typedef struct Dl_info {
|
|
const char * dli_fname;
|
|
void * dli_fbase;
|
|
const char * dli_saddr;
|
|
int dli_version;
|
|
int dli_reserved1;
|
|
long dli_reserved[4];
|
|
} Dl_info;
|
|
#endif
|
|
#define _RLD_DLADDR 14
|
|
|
|
int dladdr(void *address, Dl_info* dl);
|
|
|
|
#endif
|