sensord: move the location of header inclusion 67/58567/1
authorkibak.yoon <kibak.yoon@samsung.com>
Tue, 2 Feb 2016 01:16:58 +0000 (10:16 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Tue, 2 Feb 2016 01:16:58 +0000 (10:16 +0900)
Change-Id: Ieb6757572f21fd3f9ff7f0c694365345bb5a3d36
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/shared/sensor_internal.h
src/shared/sensor_internal_deprecated.h

index 76ce1d0..62ae845 100644 (file)
 #endif
 
 #include "stdbool.h"
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
 #include <sys/types.h>
 #include <glib.h>
 
-#include <sensor_internal_deprecated.h>
-
 /*header for common sensor type*/
 #include <sensor_common.h>
 
 /*header for each sensor type*/
 #include <sensor_types.h>
 
+#include <sensor_internal_deprecated.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
 typedef void (*sensor_cb_t)(sensor_t sensor, unsigned int event_type, sensor_data_t *data, void *user_data);
 typedef void (*sensorhub_cb_t)(sensor_t sensor, unsigned int event_type, sensorhub_data_t *data, void *user_data);
 typedef void (*sensor_accuracy_changed_cb_t) (sensor_t sensor, unsigned long long timestamp, int accuracy, void *user_data);
index cdf3084..4a6948c 100644 (file)
 
 #include "stdbool.h"
 
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
 #include <sys/types.h>
 
 /*header for common sensor type*/
@@ -41,6 +36,12 @@ extern "C"
 
 #include <sensor_deprecated.h>
 
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
 #define MAX_KEY_LEN 30
 
 typedef struct {