mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 21:10:27 +02:00
* _scm.h: #include <config.h> if HAVE_CONFIG_H.
Rename usage of USE_PTHREAD_THREADS to SCM_USE_PTHREAD_THREADS.
This commit is contained in:
parent
92e6989fda
commit
b49ed9c97f
1 changed files with 15 additions and 15 deletions
|
@ -46,22 +46,22 @@
|
|||
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
This file is Guile's central private header.
|
||||
|
||||
When included by other files, this file should preceed any include
|
||||
other than __scm.h. See __scm.h for details regarding the purpose of
|
||||
and differences between _scm.h and __scm.h.
|
||||
**********************************************************************/
|
||||
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
/* "What's the difference between _scm.h and __scm.h?"
|
||||
|
||||
_scm.h is not installed; it's only visible to the libguile sources
|
||||
themselves.
|
||||
|
||||
__scm.h is installed, and is #included by <libguile.h>. If both
|
||||
the client and libguile need some piece of information, and it
|
||||
doesn't fit well into the header file for any particular module, it
|
||||
should go in __scm.h. */
|
||||
|
||||
|
||||
|
||||
/* Include headers for those files central to the implementation. The
|
||||
rest should be explicitly #included in the C files themselves. */
|
||||
#include "libguile/error.h" /* Everyone signals errors. */
|
||||
|
@ -88,7 +88,7 @@
|
|||
*/
|
||||
|
||||
#ifdef HAVE_RESTARTABLE_SYSCALLS
|
||||
#ifndef USE_PTHREAD_THREADS /* However, don't assume SA_RESTART
|
||||
#ifndef SCM_USE_PTHREAD_THREADS /* However, don't assume SA_RESTART
|
||||
works with pthreads... */
|
||||
#define SCM_SYSCALL(line) line
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue