Fix cortex_m_generic C++ linkage errors (#2350)

Removes debug_log.h include from extern "C"-block to avoid errors when including <cstddef>.

bug=fixes cortex_m_generic build errors
diff --git a/tensorflow/lite/micro/cortex_m_generic/debug_log.cc b/tensorflow/lite/micro/cortex_m_generic/debug_log.cc
index 0be6018..b7182a5 100644
--- a/tensorflow/lite/micro/cortex_m_generic/debug_log.cc
+++ b/tensorflow/lite/micro/cortex_m_generic/debug_log.cc
@@ -16,12 +16,12 @@
 // Implementation for the DebugLog() function that prints to the debug logger on
 // an generic Cortex-M device.
 
+#include "tensorflow/lite/micro/debug_log.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif  // __cplusplus
 
-#include "tensorflow/lite/micro/debug_log.h"
-
 #include "tensorflow/lite/micro/cortex_m_generic/debug_log_callback.h"
 
 #ifndef TF_LITE_STRIP_ERROR_STRINGS