added some more definitions for LT_EXPORT
This commit is contained in:
		
							parent
							
								
									5969582f3d
								
							
						
					
					
						commit
						4a5e2b0350
					
				
							
								
								
									
										11
									
								
								src/lt.h
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/lt.h
									
									
									
									
									
								
							|  | @ -40,8 +40,15 @@ THE SOFTWARE. | ||||||
| #define TOKEN_STR_BLOCK_LENGTH 512 | #define TOKEN_STR_BLOCK_LENGTH 512 | ||||||
| 
 | 
 | ||||||
| // [marrub] When using in FFI, remove this from the declarations.
 | // [marrub] When using in FFI, remove this from the declarations.
 | ||||||
| //          Also make sure to redefine this for cross-platform.
 | //          Also make sure to redefine this if your platform is not supported.
 | ||||||
| #define LT_EXPORT __declspec(dllexport) | //          (OSX shouldn't need this at all)
 | ||||||
|  | #if defined(_MSC_VER) | ||||||
|  | 	#define LT_EXPORT __declspec(dllexport) | ||||||
|  | #elseif defined(_GCC) | ||||||
|  | 	#define LT_EXPORT __attribute__((visibility("default"))) | ||||||
|  | #else | ||||||
|  | 	#define LT_EXPORT | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| enum | enum | ||||||
| { | { | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user