Fixed TLS

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@768 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
coppro
2007-10-19 00:16:14 +00:00
parent a7efdf89c2
commit fc28cf099a
+2 -2
View File
@@ -23,7 +23,7 @@
#ifdef _MSC_VER
# define THREAD_LOCAL __declspec(thread)
# define HAVE_TLS 1
#elseif defined __linux__
#elseif defined __linux
# define THREAD_LOCAL __thread
# define HAVE_TLS 1
#else
@@ -102,7 +102,7 @@
~ThreadLocalObject () {
for (typename map<int,T*>::iterator i = objects.begin(); i != objects.end(); ++i) {
delete *i;
delete (*i).second;
}
}
};