mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* rubysig.h: <errno.h> is needed to use errno which may be a macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									bafe6d8504
								
							
						
					
					
						commit
						417a410892
					
				
					 2 changed files with 8 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,7 @@
 | 
			
		|||
Fri Jan  9 11:52:16 2004  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* rubysig.h: <errno.h> is needed to use errno which may be a macro.
 | 
			
		||||
 | 
			
		||||
Fri Jan  9 11:20:24 2004  Siena.  <siena@faculty.chiba-u.jp>
 | 
			
		||||
 | 
			
		||||
	* ext/extmk.rb (extmake): should not reduce necessary libraries.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,8 +10,9 @@
 | 
			
		|||
 | 
			
		||||
**********************************************************************/
 | 
			
		||||
 | 
			
		||||
#ifndef SIG_H
 | 
			
		||||
#define SIG_H
 | 
			
		||||
#ifndef RUBYSIG_H
 | 
			
		||||
#define RUBYSIG_H
 | 
			
		||||
#include <errno.h>
 | 
			
		||||
 | 
			
		||||
#ifdef _WIN32
 | 
			
		||||
typedef LONG rb_atomic_t;
 | 
			
		||||
| 
						 | 
				
			
			@ -24,7 +25,6 @@ typedef LONG rb_atomic_t;
 | 
			
		|||
/* Windows doesn't allow interrupt while system calls */
 | 
			
		||||
# define TRAP_BEG do {\
 | 
			
		||||
    int saved_errno = 0;\
 | 
			
		||||
    extern int errno;\
 | 
			
		||||
    rb_atomic_t trap_immediate = ATOMIC_SET(rb_trap_immediate, 1)
 | 
			
		||||
# define TRAP_END\
 | 
			
		||||
    ATOMIC_SET(rb_trap_immediate, trap_immediate);\
 | 
			
		||||
| 
						 | 
				
			
			@ -46,7 +46,6 @@ typedef int rb_atomic_t;
 | 
			
		|||
# define ATOMIC_DEC(var) (--(var))
 | 
			
		||||
 | 
			
		||||
# define TRAP_BEG do {\
 | 
			
		||||
    extern int errno;\
 | 
			
		||||
    int saved_errno = 0;\
 | 
			
		||||
    int trap_immediate = rb_trap_immediate;\
 | 
			
		||||
    rb_trap_immediate = 1
 | 
			
		||||
| 
						 | 
				
			
			@ -106,4 +105,4 @@ RUBY_EXTERN int rb_thread_tick;
 | 
			
		|||
} while (0)
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
#endif /* ifndef RUBYSIG_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue