[pypy-svn] r45889 - pypy/branch/pypy-more-rtti-inprogress/translator/c/src

fijal at codespeak.net fijal at codespeak.net
Mon Aug 20 21:34:15 CEST 2007


Author: fijal
Date: Mon Aug 20 21:34:15 2007
New Revision: 45889

Modified:
   pypy/branch/pypy-more-rtti-inprogress/translator/c/src/thread.h
Log:
avoid including this file twice (fix from dist)


Modified: pypy/branch/pypy-more-rtti-inprogress/translator/c/src/thread.h
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/translator/c/src/thread.h	(original)
+++ pypy/branch/pypy-more-rtti-inprogress/translator/c/src/thread.h	Mon Aug 20 21:34:15 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