From 272c958bacc68df965c692384573851a73d4704c Mon Sep 17 00:00:00 2001 From: Li Jingyi Date: Tue, 21 Jul 2020 17:41:35 +0800 Subject: [PATCH] feat(wpa_supplicant): move CONFIG_LTM_FAST from libtommath.h to os.h --- components/wpa_supplicant/port/include/os.h | 4 ++++ components/wpa_supplicant/src/crypto/libtommath.h | 3 --- components/wpa_supplicant/src/tls/libtommath.h | 4 ---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/components/wpa_supplicant/port/include/os.h b/components/wpa_supplicant/port/include/os.h index 8f105080..a7c8eadc 100644 --- a/components/wpa_supplicant/port/include/os.h +++ b/components/wpa_supplicant/port/include/os.h @@ -22,6 +22,10 @@ // #include "esp32/rom/ets_sys.h" #include "esp_libc.h" +#if CONFIG_LTM_FAST +#define LTM_FAST +#endif + typedef time_t os_time_t; /** diff --git a/components/wpa_supplicant/src/crypto/libtommath.h b/components/wpa_supplicant/src/crypto/libtommath.h index 487be1ec..1010f9f6 100644 --- a/components/wpa_supplicant/src/crypto/libtommath.h +++ b/components/wpa_supplicant/src/crypto/libtommath.h @@ -17,9 +17,6 @@ #include "os.h" #include "stdarg.h" -#if CONFIG_LTM_FAST -#define LTM_FAST -#endif #ifndef CHAR_BIT #define CHAR_BIT 8 diff --git a/components/wpa_supplicant/src/tls/libtommath.h b/components/wpa_supplicant/src/tls/libtommath.h index 20141d0c..07574de7 100644 --- a/components/wpa_supplicant/src/tls/libtommath.h +++ b/components/wpa_supplicant/src/tls/libtommath.h @@ -16,10 +16,6 @@ #include "os.h" #include "stdarg.h" -#if CONFIG_LTM_FAST -#define LTM_FAST -#endif - #ifndef CHAR_BIT #define CHAR_BIT 8 #endif