mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-11-03 20:33:16 +03:00 
			
		
		
		
	Move #include "common.h" where config.h used to be
After removing config.h, the inclusion of it in common.h would be too late in the code. Therefore common.h has been moved to where config.h used to be included. Signed-off-by: Joe Subbiani <joe.subbiani@arm.com>
This commit is contained in:
		@@ -18,6 +18,8 @@
 | 
				
			|||||||
 *  limitations under the License.
 | 
					 *  limitations under the License.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "common.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(MBEDTLS_PSA_CRYPTO_STORAGE_C)
 | 
					#if defined(MBEDTLS_PSA_CRYPTO_STORAGE_C)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
@@ -42,8 +44,6 @@
 | 
				
			|||||||
#define mbedtls_free     free
 | 
					#define mbedtls_free     free
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "common.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/****************************************************************/
 | 
					/****************************************************************/
 | 
				
			||||||
/* Key storage */
 | 
					/* Key storage */
 | 
				
			||||||
/****************************************************************/
 | 
					/****************************************************************/
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,6 +18,8 @@
 | 
				
			|||||||
 *  limitations under the License.
 | 
					 *  limitations under the License.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "common.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(MBEDTLS_PSA_ITS_FILE_C)
 | 
					#if defined(MBEDTLS_PSA_ITS_FILE_C)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(MBEDTLS_PLATFORM_C)
 | 
					#if defined(MBEDTLS_PLATFORM_C)
 | 
				
			||||||
@@ -32,8 +34,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "psa_crypto_its.h"
 | 
					#include "psa_crypto_its.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "common.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include <limits.h>
 | 
					#include <limits.h>
 | 
				
			||||||
#include <stdint.h>
 | 
					#include <stdint.h>
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user