r148 - in trunk/code: game macosx macosx/Quake3.pbproj
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Oct 8 02:30:39 EDT 2005
Author: six
Date: 2005-10-08 02:30:38 -0400 (Sat, 08 Oct 2005)
New Revision: 148
Added:
trunk/code/macosx/macosx_common.c
Modified:
trunk/code/game/q_shared.h
trunk/code/macosx/Quake3.pbproj/project.pbxproj
Log:
Mac OS X needs Com_Memcpy and Com_Memset to be set to memcpy and memset.
Modified: trunk/code/game/q_shared.h
===================================================================
--- trunk/code/game/q_shared.h 2005-10-07 01:03:49 UTC (rev 147)
+++ trunk/code/game/q_shared.h 2005-10-08 06:30:38 UTC (rev 148)
@@ -476,7 +476,7 @@
void *Hunk_Alloc( int size, ha_pref preference );
#endif
-#if defined(__GNUC__) && !defined(__MINGW32__)
+#if defined(__GNUC__) && !defined(__MINGW32__) && !defined(MACOS_X)
// https://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=371
// custom Snd_Memset implementation for glibc memset bug workaround
void Snd_Memset (void* dest, const int val, const size_t count);
Modified: trunk/code/macosx/Quake3.pbproj/project.pbxproj
===================================================================
--- trunk/code/macosx/Quake3.pbproj/project.pbxproj 2005-10-07 01:03:49 UTC (rev 147)
+++ trunk/code/macosx/Quake3.pbproj/project.pbxproj 2005-10-08 06:30:38 UTC (rev 148)
@@ -136,6 +136,7 @@
13380E3100ADFD58C697A10E,
13380E3200ADFD71C697A10E,
13380E3300ADFD85C697A10E,
+ 4F23A81708F4FA8F00CB90D3,
);
isa = PBXSourcesBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
@@ -257,6 +258,7 @@
13380E4F00AE0112C697A10E,
13380E5000AE020FC697A10E,
13380E5200AE0235C697A10E,
+ 4F23A81B08F4FA8F00CB90D3,
);
isa = PBXSourcesBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
@@ -5003,6 +5005,7 @@
016EAE1500B4BE42C697A10E,
016EAE1600B4BE42C697A10E,
016EAE1700B4BE53C697A10E,
+ 4F23A81908F4FA8F00CB90D3,
);
isa = PBXSourcesBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
@@ -5322,6 +5325,7 @@
0170311600B48B5CC697A10E,
F54951F40354EAA2011BCB42,
4FB23865047AB9F60098ACF3,
+ 4F23A81308F4FA8F00CB90D3,
);
isa = PBXSourcesBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
@@ -6427,9 +6431,9 @@
};
dependencies = (
0170311D00B49352C697A10E,
+ 18A3D358065F663A006A719A,
+ 18A3D356065F6636006A719A,
4FF091EA04897B0000030DA8,
- 18A3D356065F6636006A719A,
- 18A3D358065F663A006A719A,
18A3D35A065F663F006A719A,
);
isa = PBXAggregateTarget;
@@ -6476,6 +6480,7 @@
043627B600868916C697A10E,
043627B700868916C697A10E,
043627B800868916C697A10E,
+ 4F23A81108F4FA8F00CB90D3,
);
isa = PBXGroup;
name = "Mac OS X";
@@ -8160,6 +8165,7 @@
016F1B6400ACDA9BC697A10E,
4FB23867047ABF780098ACF3,
4FEFFEDA047B008000719638,
+ 4F23A81D08F4FA8F00CB90D3,
);
isa = PBXSourcesBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
@@ -8809,6 +8815,56 @@
//4F2
//4F3
//4F4
+ 4F23A81108F4FA8F00CB90D3 = {
+ fileEncoding = 4;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.c;
+ path = macosx_common.c;
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ 4F23A81308F4FA8F00CB90D3 = {
+ fileRef = 4F23A81108F4FA8F00CB90D3;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 4F23A81508F4FA8F00CB90D3 = {
+ fileRef = 4F23A81108F4FA8F00CB90D3;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 4F23A81708F4FA8F00CB90D3 = {
+ fileRef = 4F23A81108F4FA8F00CB90D3;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 4F23A81908F4FA8F00CB90D3 = {
+ fileRef = 4F23A81108F4FA8F00CB90D3;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 4F23A81B08F4FA8F00CB90D3 = {
+ fileRef = 4F23A81108F4FA8F00CB90D3;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 4F23A81D08F4FA8F00CB90D3 = {
+ fileRef = 4F23A81108F4FA8F00CB90D3;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ 4F23A81F08F4FA8F00CB90D3 = {
+ fileRef = 4F23A81108F4FA8F00CB90D3;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
4FB23863047AB9F60098ACF3 = {
fileEncoding = 30;
isa = PBXFileReference;
@@ -9498,6 +9554,7 @@
4FF0911504896C0E00030DA8,
4FF0911B04896C0E00030DA8,
4FF0911C04896C0E00030DA8,
+ 4F23A81508F4FA8F00CB90D3,
);
isa = PBXSourcesBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
@@ -10919,6 +10976,7 @@
4FF091D904896C1600030DA8,
4FF091DD04896C1600030DA8,
4FF091DF04896C1600030DA8,
+ 4F23A81F08F4FA8F00CB90D3,
);
isa = PBXSourcesBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
Added: trunk/code/macosx/macosx_common.c
===================================================================
--- trunk/code/macosx/macosx_common.c 2005-10-07 01:03:49 UTC (rev 147)
+++ trunk/code/macosx/macosx_common.c 2005-10-08 06:30:38 UTC (rev 148)
@@ -0,0 +1,31 @@
+/*
+===========================================================================
+Copyright (C) 1999-2005 Id Software, Inc.
+
+This file is part of Quake III Arena source code.
+
+Quake III Arena source code 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.
+
+Quake III Arena source code 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 Foobar; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+===========================================================================
+*/
+#include <unistd.h>
+#include <string.h>
+
+void Com_Memcpy (void* dest, const void* src, const size_t count) {
+ memcpy(dest, src, count);
+}
+
+void Com_Memset (void* dest, const int val, const size_t count) {
+ memset(dest, val, count);
+}
More information about the quake3-commits
mailing list