mirror of
				https://github.com/open-source-parsers/jsoncpp.git
				synced 2025-11-04 02:32:19 -05:00 
			
		
		
		
	MinGW support while building as DLL
This is PR for https://github.com/open-source-parsers/jsoncpp/issues/434 It will fix reported build error.
This commit is contained in:
		
							parent
							
								
									1b5e61d008
								
							
						
					
					
						commit
						3e51598176
					
				@ -39,12 +39,12 @@
 | 
			
		||||
#ifdef JSON_IN_CPPTL
 | 
			
		||||
#define JSON_API CPPTL_API
 | 
			
		||||
#elif defined(JSON_DLL_BUILD)
 | 
			
		||||
#if defined(_MSC_VER)
 | 
			
		||||
#if defined(_MSC_VER) || defined(__GNUC__)
 | 
			
		||||
#define JSON_API __declspec(dllexport)
 | 
			
		||||
#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
 | 
			
		||||
#endif // if defined(_MSC_VER)
 | 
			
		||||
#elif defined(JSON_DLL)
 | 
			
		||||
#if defined(_MSC_VER)
 | 
			
		||||
#if defined(_MSC_VER) || defined(__GNUC__)
 | 
			
		||||
#define JSON_API __declspec(dllimport)
 | 
			
		||||
#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING
 | 
			
		||||
#endif // if defined(_MSC_VER)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user