diff trunk/chipmunkd/cpSpace.d @ 28:4541ca17975b

use __gshared as chipmunk heavily relies on globals and D would otherwise make them TLS
author Extrawurst
date Mon, 13 Dec 2010 21:40:56 +0100
parents 4ceef5833c8c
children 80058cee1a77
line wrap: on
line diff
--- a/trunk/chipmunkd/cpSpace.d	Mon Dec 13 21:24:12 2010 +0100
+++ b/trunk/chipmunkd/cpSpace.d	Mon Dec 13 21:40:56 2010 +0100
@@ -185,7 +185,7 @@
 //void cpSpaceStep(cpSpace *space, cpFloat dt);
 
 
-cpTimestamp cp_contact_persistence = 3;
+__gshared cpTimestamp cp_contact_persistence = 3;
 
 // Equal function for contactSet.
 static cpBool
@@ -256,7 +256,7 @@
 enum DEFAULT_ITERATIONS				= 10;
 enum DEFAULT_ELASTIC_ITERATIONS		= 0;
 
-cpCollisionHandler defaultHandler = {0, 0, &alwaysCollide, &alwaysCollide, &nothing, &nothing, null};
+__gshared cpCollisionHandler defaultHandler = {0, 0, &alwaysCollide, &alwaysCollide, &nothing, &nothing, null};
 
 cpSpace*
 cpSpaceInit(cpSpace *space)