diff --git a/include/mbedtls/build_info.h b/include/mbedtls/build_info.h index 2498a738b..e4a89c60e 100644 --- a/include/mbedtls/build_info.h +++ b/include/mbedtls/build_info.h @@ -41,15 +41,15 @@ #error "Invalid config version, MBEDTLS_CONFIG_VERSION != 1" #endif +#if defined(MBEDTLS_USER_CONFIG_VERSION) +#error "MBEDTLS_USER_CONFIG_VERSION defined outside MBEDTLS_USER_CONFIG_FILE" +#endif + /* Target and application specific configurations * * Allow user to override any previous default. * */ -#if defined(MBEDTLS_USER_CONFIG_VERSION) -#error "MBEDTLS_USER_CONFIG_VERSION defined outside MBEDTLS_USER_CONFIG_FILE" -#endif - #if defined(MBEDTLS_USER_CONFIG_FILE) #include MBEDTLS_USER_CONFIG_FILE #if !defined(MBEDTLS_USER_CONFIG_VERSION) || \