diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-07-15 15:50:44 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-07-21 15:53:20 +0200 |
commit | 73cf5bcb6bc21c0a9b14378bd35f595c48fccd7b (patch) | |
tree | 107a7769be2621798db18985487061e21cd0a41a /Android.mk | |
parent | d39b0d37bbb9071ca11b41daebab50e9bf5ed41a (diff) | |
download | hardware_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 'Android.mk')
0 files changed, 0 insertions, 0 deletions