mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-10-27 01:34:25 -04:00 
			
		
		
		
	psa: Avoid use of relative include paths
Relative include paths should be avoided. The build system will determine where to pull in includes from. Specifically, `#include "../mbedtls/config.h"` shouldn't be used. Use `#include "mbedtls/config.h` instead, so that the submodule-building makefiles can change which directory to use to get mbedtls include files from. Fixes #141
This commit is contained in:
		
							parent
							
								
									8907b019e7
								
							
						
					
					
						commit
						d58a00d5b7
					
				| @ -38,7 +38,7 @@ | |||||||
| /* Include the Mbed TLS configuration file, the way Mbed TLS does it
 | /* Include the Mbed TLS configuration file, the way Mbed TLS does it
 | ||||||
|  * in each of its header files. */ |  * in each of its header files. */ | ||||||
| #if !defined(MBEDTLS_CONFIG_FILE) | #if !defined(MBEDTLS_CONFIG_FILE) | ||||||
| #include "../mbedtls/config.h" | #include "mbedtls/config.h" | ||||||
| #else | #else | ||||||
| #include MBEDTLS_CONFIG_FILE | #include MBEDTLS_CONFIG_FILE | ||||||
| #endif | #endif | ||||||
|  | |||||||
| @ -45,7 +45,7 @@ | |||||||
| /* Include the Mbed TLS configuration file, the way Mbed TLS does it
 | /* Include the Mbed TLS configuration file, the way Mbed TLS does it
 | ||||||
|  * in each of its header files. */ |  * in each of its header files. */ | ||||||
| #if !defined(MBEDTLS_CONFIG_FILE) | #if !defined(MBEDTLS_CONFIG_FILE) | ||||||
| #include "../mbedtls/config.h" | #include "mbedtls/config.h" | ||||||
| #else | #else | ||||||
| #include MBEDTLS_CONFIG_FILE | #include MBEDTLS_CONFIG_FILE | ||||||
| #endif | #endif | ||||||
|  | |||||||
| @ -38,7 +38,7 @@ | |||||||
| /* Include the Mbed TLS configuration file, the way Mbed TLS does it
 | /* Include the Mbed TLS configuration file, the way Mbed TLS does it
 | ||||||
|  * in each of its header files. */ |  * in each of its header files. */ | ||||||
| #if !defined(MBEDTLS_CONFIG_FILE) | #if !defined(MBEDTLS_CONFIG_FILE) | ||||||
| #include "../mbedtls/config.h" | #include "mbedtls/config.h" | ||||||
| #else | #else | ||||||
| #include MBEDTLS_CONFIG_FILE | #include MBEDTLS_CONFIG_FILE | ||||||
| #endif | #endif | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jaeden Amero
						Jaeden Amero