Mercurial > cpython-lru_cache-weakref
diff Python/importdl.c @ 9205:0858f11c88d7 legacy-trunk
Renamed thread.h to pythread.h.
(Also removed whitespace after # in some BEOS related cpp directives.)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 01 Oct 1998 20:43:23 +0000 |
| parents | 958e1faa38a9 |
| children | d64200834a6b |
line wrap: on
line diff
--- a/Python/importdl.c Thu Oct 01 20:43:13 1998 +0000 +++ b/Python/importdl.c Thu Oct 01 20:43:23 1998 +0000 @@ -178,26 +178,26 @@ #endif #ifdef __BEOS__ -# undef USE_SHLIB /* probably not defined anyway */ -# define DYNAMIC_LINK -# define SHORT_EXT ".so" -# define LONG_EXT "module.so" +#undef USE_SHLIB /* probably not defined anyway */ +#define DYNAMIC_LINK +#define SHORT_EXT ".so" +#define LONG_EXT "module.so" typedef void (*dl_funcptr)(void); -# define _DL_FUNCPTR_DEFINED +#define _DL_FUNCPTR_DEFINED -# if defined(MAXPATHLEN) && !defined(_SYS_PARAM_H) -# undef MAXPATHLEN -# endif +#if defined(MAXPATHLEN) && !defined(_SYS_PARAM_H) +#undef MAXPATHLEN +#endif -# include <kernel/image.h> -# include <kernel/OS.h> -# include <stdlib.h> -# include <unistd.h> +#include <kernel/image.h> +#include <kernel/OS.h> +#include <stdlib.h> +#include <unistd.h> -# ifdef WITH_THREAD -# include "thread.h" +#ifdef WITH_THREAD +#include "pythread.h" static type_lock beos_dyn_lock; -# endif +#endif static PyObject *beos_dyn_images = NULL;
