[pypy-svn] r45559 - pypy/dist/pypy/translator/c/src

fijal at codespeak.net fijal at codespeak.net
Thu Aug 9 01:17:45 CEST 2007


Author: fijal
Date: Thu Aug  9 01:17:42 2007
New Revision: 45559

Modified:
   pypy/dist/pypy/translator/c/src/thread.h
Log:
Make sure we don't import this twice


Modified: pypy/dist/pypy/translator/c/src/thread.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/thread.h	(original)
+++ pypy/dist/pypy/translator/c/src/thread.h	Thu Aug  9 01:17:42 2007
@@ -1,6 +1,9 @@
 
 /* #ifdef logic from CPython */
 
+#ifndef __PYPY_THREAD_H
+#define __PYPY_THREAD_H
+
 #ifndef _POSIX_THREADS
 /* This means pthreads are not implemented in libc headers, hence the macro
    not present in unistd.h. But they still can be implemented as an external
@@ -35,3 +38,5 @@
 #define RPyThreadStaticTLS_Set(key, value) RPyThreadTLS_Set(key, value)
 
 #endif
+
+#endif



More information about the Pypy-commit mailing list