mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Introduce support for DJGPP cross compiler
DJGPP cross compiler is targeting DOS which does not support POSIX signals. Probably for the same reason (targeting DOS) this compiler does not support wide characters.
This commit is contained in:
		 Tomas Zeman
					Tomas Zeman
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							352853ed7e
						
					
				
				
					commit
					95c849f613
				
			| @@ -67,7 +67,7 @@ | ||||
|  | ||||
| //////////////////////////////////////////////////////////////////////////////// | ||||
| // We know some environments not to support full POSIX signals | ||||
| #if defined(__CYGWIN__) || defined(__QNX__) || defined(__EMSCRIPTEN__) | ||||
| #if defined(__CYGWIN__) || defined(__QNX__) || defined(__EMSCRIPTEN__) || defined(__DJGPP__) | ||||
|  | ||||
| #   if !defined(CATCH_CONFIG_POSIX_SIGNALS) | ||||
| #       define CATCH_INTERNAL_CONFIG_NO_POSIX_SIGNALS | ||||
| @@ -111,6 +111,13 @@ | ||||
|  | ||||
| //////////////////////////////////////////////////////////////////////////////// | ||||
|  | ||||
| // DJGPP | ||||
| #ifdef __DJGPP__ | ||||
| #  define CATCH_INTERNAL_CONFIG_NO_WCHAR | ||||
| #endif // __DJGPP__ | ||||
|  | ||||
| //////////////////////////////////////////////////////////////////////////////// | ||||
|  | ||||
| // Use of __COUNTER__ is suppressed during code analysis in | ||||
| // CLion/AppCode 2017.2.x and former, because __COUNTER__ is not properly | ||||
| // handled by it. | ||||
|   | ||||
| @@ -169,7 +169,12 @@ namespace { | ||||
| #ifdef CATCH_PLATFORM_MAC | ||||
|             !isDebuggerActive() && | ||||
| #endif | ||||
|             isatty(STDOUT_FILENO); | ||||
| #if !(defined(__DJGPP__) && defined(__STRICT_ANSI__)) | ||||
|             isatty(STDOUT_FILENO) | ||||
| #else | ||||
|             false | ||||
| #endif | ||||
|             ; | ||||
|     } | ||||
|     IColourImpl* platformColourInstance() { | ||||
|         ErrnoGuard guard; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user