aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/devices/n7100/n7100.c
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-07-15 15:50:44 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-07-21 15:53:20 +0200
commit73cf5bcb6bc21c0a9b14378bd35f595c48fccd7b (patch)
tree107a7769be2621798db18985487061e21cd0a41a /samsung-ipc/devices/n7100/n7100.c
parentd39b0d37bbb9071ca11b41daebab50e9bf5ed41a (diff)
downloadhardware_replicant_libsamsung-ipc-73cf5bcb6bc21c0a9b14378bd35f595c48fccd7b.tar.gz
hardware_replicant_libsamsung-ipc-73cf5bcb6bc21c0a9b14378bd35f595c48fccd7b.tar.bz2
hardware_replicant_libsamsung-ipc-73cf5bcb6bc21c0a9b14378bd35f595c48fccd7b.zip
samsung-ipc: use #include "file" instead of #include <file> when relevant
The way <> and "" are included are implementation defined according to the C18 standard[1]: A preprocessing directive of the form # include < h-char-sequence > new-line searches a sequence of implementation-defined places for a header identified uniquely by the specified sequence between the < and > delimiters, and causes the replacement of that directive by the entire contents of the header. How the places are specified or the header identified is implementation-defined. A preprocessing directive of the form # include " q-char-sequence " new-line causes the replacement of that directive by the entire contents of the source file identified by the specified sequence between the " delimiters. The named source file is searched for in an implementation-defined manner. If this search is not supported, or if the search fails, the directive is reprocessed as if it read And the GCC documentation has the following on #include directives[2]: Both user and system header files are included using the preprocessing directive ‘#include’. It has two variants: #include <file> This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to this list with the -I option (see Invocation). #include "file" This variant is used for header files of your own program. It searches for a file named file first in the directory containing the current file, then in the quote directories and then the same directories used for <file>. You can prepend directories to the list of quote directories with the -iquote option. References: ----------- [1]The standard doesn't seem to be available for free, but the draft can be downloaded from the following URL: https://web.archive.org/web/20181230041359if_/http://www.open-std.org/jtc1/sc22/wg14/www/abq/c17_updated_proposed_fdis.pdf [2]https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'samsung-ipc/devices/n7100/n7100.c')
-rw-r--r--samsung-ipc/devices/n7100/n7100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samsung-ipc/devices/n7100/n7100.c b/samsung-ipc/devices/n7100/n7100.c
index e1ff774..d6ce946 100644
--- a/samsung-ipc/devices/n7100/n7100.c
+++ b/samsung-ipc/devices/n7100/n7100.c
@@ -23,9 +23,9 @@
#include <string.h>
#include <unistd.h>
-#include <ipc.h>
#include <samsung-ipc.h>
+#include "ipc.h"
#include "n7100.h"
#include "xmm626.h"
#include "xmm626_hsic.h"