mirror of
https://github.com/rehlds/resemiclip.git
synced 2024-12-26 14:45:54 +03:00
97 lines
2.7 KiB
C
97 lines
2.7 KiB
C
|
/*
|
||
|
*
|
||
|
* 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 2 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.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program; if not, write to the Free Software Foundation,
|
||
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||
|
*
|
||
|
* In addition, as a special exception, the author gives permission to
|
||
|
* link the code of this program with the Half-Life Game Engine ("HL
|
||
|
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
|
||
|
* L.L.C ("Valve"). You must obey the GNU General Public License in all
|
||
|
* respects for all of the code used other than the HL Engine and MODs
|
||
|
* from Valve. If you modify this file, you may extend this exception
|
||
|
* to your version of the file, but you are not obligated to do so. If
|
||
|
* you do not wish to do so, delete this exception statement from your
|
||
|
* version.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#ifndef _WIN32
|
||
|
#define _strlwr(p) for (int i = 0; p[i] != 0; i++) p[i] = tolower(p[i]);
|
||
|
#endif
|
||
|
|
||
|
#define Q_isspace isspace
|
||
|
#define Q_isalnum isalnum
|
||
|
#define Q_isalpha isalpha
|
||
|
|
||
|
#define Q_malloc malloc
|
||
|
#define Q_calloc calloc
|
||
|
#define Q_alloca alloca
|
||
|
#define Q_free free
|
||
|
|
||
|
#define Q_min min
|
||
|
#define Q_max max
|
||
|
#define Q_clamp clamp
|
||
|
#define Q_access _access
|
||
|
#define Q_close _close
|
||
|
#define Q_write _write
|
||
|
#define Q_memset memset
|
||
|
#define Q_memcpy memcpy
|
||
|
#define Q_strlen strlen
|
||
|
#define Q_memcmp memcmp
|
||
|
#define Q_strcpy strcpy
|
||
|
#define Q_strncpy strncpy
|
||
|
#define Q_strrchr strrchr
|
||
|
#define Q_strcat strcat
|
||
|
#define Q_strncat strncat
|
||
|
#define Q_strcmp strcmp
|
||
|
#define Q_strncmp strncmp
|
||
|
#define Q_sscanf sscanf
|
||
|
#define Q_strdup _strdup
|
||
|
#define Q_stricmp _stricmp
|
||
|
#define Q_strnicmp _strnicmp
|
||
|
#define Q_strstr strstr
|
||
|
#define Q_strchr strchr
|
||
|
#define Q_strrchr strrchr
|
||
|
#define Q_strlwr _strlwr
|
||
|
#define Q_sprintf sprintf
|
||
|
#define Q_snprintf _snprintf
|
||
|
#define Q_atoi atoi
|
||
|
#define Q_atof atof
|
||
|
#define Q_toupper toupper
|
||
|
#define Q_memmove memmove
|
||
|
#define Q_vsnprintf _vsnprintf
|
||
|
#define Q_vsnwprintf _vsnwprintf
|
||
|
#define Q_abs abs
|
||
|
#define Q_fabs fabs
|
||
|
#define Q_tan tan
|
||
|
#define Q_atan atan
|
||
|
#define Q_atan2 atan2
|
||
|
#define Q_acos acos
|
||
|
#define Q_cos cos
|
||
|
#define Q_sin sin
|
||
|
#define Q_pow pow
|
||
|
#define Q_fmod fmod
|
||
|
#define Q_fopen fopen
|
||
|
#define Q_fwrite fwrite
|
||
|
#define Q_fprintf fprintf
|
||
|
#define Q_fclose fclose
|
||
|
|
||
|
#ifdef REGAMEDLL_FIXES
|
||
|
#define Q_sqrt M_sqrt
|
||
|
#else
|
||
|
#define Q_sqrt sqrt
|
||
|
#endif
|