win64: align jmp_buf
This commit is contained in:
		
							parent
							
								
									035918ef2f
								
							
						
					
					
						commit
						09ac9faf59
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		
							
								
								
									
										10
									
								
								tcc.h
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								tcc.h
									
										
									
									
									
								
							| 
						 | 
					@ -47,6 +47,9 @@
 | 
				
			||||||
#define inline __inline
 | 
					#define inline __inline
 | 
				
			||||||
#define inp next_inp
 | 
					#define inp next_inp
 | 
				
			||||||
#define dlclose FreeLibrary
 | 
					#define dlclose FreeLibrary
 | 
				
			||||||
 | 
					#ifdef _MSC_VER
 | 
				
			||||||
 | 
					#define __aligned(n) __declspec(align(n))
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
#ifdef _WIN64
 | 
					#ifdef _WIN64
 | 
				
			||||||
#define uplong unsigned long long
 | 
					#define uplong unsigned long long
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					@ -65,6 +68,10 @@
 | 
				
			||||||
#define uplong unsigned long
 | 
					#define uplong unsigned long
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef __aligned
 | 
				
			||||||
 | 
					#define __aligned(n) __attribute__((aligned(n)))
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef PAGESIZE
 | 
					#ifndef PAGESIZE
 | 
				
			||||||
#define PAGESIZE 4096
 | 
					#define PAGESIZE 4096
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					@ -473,6 +480,9 @@ struct TCCState {
 | 
				
			||||||
    void *error_opaque;
 | 
					    void *error_opaque;
 | 
				
			||||||
    void (*error_func)(void *opaque, const char *msg);
 | 
					    void (*error_func)(void *opaque, const char *msg);
 | 
				
			||||||
    int error_set_jmp_enabled;
 | 
					    int error_set_jmp_enabled;
 | 
				
			||||||
 | 
					#ifdef _WIN64
 | 
				
			||||||
 | 
					    __aligned(16)
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
    jmp_buf error_jmp_buf;
 | 
					    jmp_buf error_jmp_buf;
 | 
				
			||||||
    int nb_errors;
 | 
					    int nb_errors;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue