aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-01-28 17:55:52 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-02-01 18:29:01 +0100
commita8b18ea10bddf8be4526fd101112f41b93df55cd (patch)
tree81b2c64dfd3bf85a0a5d4efa9f32e7d4d5961f69
parent70c07c94b7dfe1bff5fa2f3df8e9200ae01cb2c3 (diff)
downloadhardware_replicant_libsamsung-ipc-a8b18ea10bddf8be4526fd101112f41b93df55cd.tar.gz
hardware_replicant_libsamsung-ipc-a8b18ea10bddf8be4526fd101112f41b93df55cd.tar.bz2
hardware_replicant_libsamsung-ipc-a8b18ea10bddf8be4526fd101112f41b93df55cd.zip
include: samsung-ipc.h: move include inside the #ifdef/#endif guards
This separates more what is part of the header and what is not so things are more clear to the people reading the code. In addition, having all includes statements inside the #ifdef #endif header guards avoids issues with the inclusion of headers that are missing such guards. This can happen with headers imported from vendor kernels. So while headers imported from vendor kernels are typically not included in the headers exported by libsamsung-ipc, it's still good to have a consistent code style between exported and non exported headers. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--include/samsung-ipc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/samsung-ipc.h b/include/samsung-ipc.h
index a03c748..3983ea5 100644
--- a/include/samsung-ipc.h
+++ b/include/samsung-ipc.h
@@ -19,11 +19,11 @@
* along with libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <sys/time.h>
-
#ifndef __SAMSUNG_IPC_H__
#define __SAMSUNG_IPC_H__
+#include <sys/time.h>
+
/*
* Values
*/