diff options
author | Tuncer Ayaz <[email protected]> | 2016-09-18 12:33:08 +0200 |
---|---|---|
committer | Tuncer Ayaz <[email protected]> | 2016-09-19 21:39:36 +0200 |
commit | 3489b9b689073f428a23f7fc7a67774b7dda07be (patch) | |
tree | 11dfe25e02c6176783ded3cebce125a0a0356007 /lib/runtime_tools | |
parent | 687eae1e86817403249f03f534a256a28c5d5251 (diff) | |
download | otp-3489b9b689073f428a23f7fc7a67774b7dda07be.tar.gz otp-3489b9b689073f428a23f7fc7a67774b7dda07be.tar.bz2 otp-3489b9b689073f428a23f7fc7a67774b7dda07be.zip |
Use more correct delimiters for erl_nif.h include
Anywhere but the beam sources we shouldn't #include "erl_nif.h", because
what "erl_nif.h" does is: (1) fail to find it outside of -I dirs, (2)
then treat it as if it was written like <erl_nif.h>. Using <erl_nif.h>
skips (1).
More information can be found in 6.10.2 of the C standard.
Because the examples use "erl_nif.h", NIF projects in the Erlang
ecosystem copy this verbatim and make the same mistake.
Diffstat (limited to 'lib/runtime_tools')
-rw-r--r-- | lib/runtime_tools/c_src/dyntrace.c | 2 | ||||
-rw-r--r-- | lib/runtime_tools/test/dbg_SUITE_data/dbg_SUITE.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/runtime_tools/c_src/dyntrace.c b/lib/runtime_tools/c_src/dyntrace.c index 3d2de9c21c..b589f5ef07 100644 --- a/lib/runtime_tools/c_src/dyntrace.c +++ b/lib/runtime_tools/c_src/dyntrace.c @@ -24,7 +24,7 @@ -#include "erl_nif.h" +#include <erl_nif.h> #include "config.h" #include "sys.h" #include "dtrace-wrapper.h" diff --git a/lib/runtime_tools/test/dbg_SUITE_data/dbg_SUITE.c b/lib/runtime_tools/test/dbg_SUITE_data/dbg_SUITE.c index ecdee7e3a2..ad90af4da0 100644 --- a/lib/runtime_tools/test/dbg_SUITE_data/dbg_SUITE.c +++ b/lib/runtime_tools/test/dbg_SUITE_data/dbg_SUITE.c @@ -18,7 +18,7 @@ * %CopyrightEnd% */ -#include "erl_nif.h" +#include <erl_nif.h> #include <stdio.h> #include <string.h> |