Fix path change: compat/ -> extra/
This commit is contained in:
@@ -104,11 +104,12 @@ requires a few header files to be available:
|
|||||||
#) *stdbool.h*, for definition of *bool*
|
#) *stdbool.h*, for definition of *bool*
|
||||||
|
|
||||||
If these header files do not come with your compiler, you can use the
|
If these header files do not come with your compiler, you can use the
|
||||||
file *compat/pb_syshdr.h* instead. It contains an example of how to provide
|
file *extra/pb_syshdr.h* instead. It contains an example of how to provide
|
||||||
the dependencies. You may have to edit it a bit to suit your custom platform.
|
the dependencies. You may have to edit it a bit to suit your custom platform.
|
||||||
|
|
||||||
To use the pb_syshdr.h, define *PB_SYSTEM_HEADER* to be the name of your custom
|
To use the pb_syshdr.h, define *PB_SYSTEM_HEADER* as *"pb_syshdr.h"* (including the quotes).
|
||||||
header file. It should provide all the dependencies listed above.
|
Similarly, you can provide a custom include file, which should provide all the dependencies
|
||||||
|
listed above.
|
||||||
|
|
||||||
Running the test cases
|
Running the test cases
|
||||||
======================
|
======================
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ if not env.GetOption('clean'):
|
|||||||
string = conf.CheckCHeader('string.h')
|
string = conf.CheckCHeader('string.h')
|
||||||
if not stdbool or not stdint or not stddef or not string:
|
if not stdbool or not stdint or not stddef or not string:
|
||||||
conf.env.Append(CPPDEFINES = {'PB_SYSTEM_HEADER': '\\"pb_syshdr.h\\"'})
|
conf.env.Append(CPPDEFINES = {'PB_SYSTEM_HEADER': '\\"pb_syshdr.h\\"'})
|
||||||
conf.env.Append(CPPPATH = "#../compat")
|
conf.env.Append(CPPPATH = "#../extra")
|
||||||
|
|
||||||
if stdbool: conf.env.Append(CPPDEFINES = {'HAVE_STDBOOL_H': 1})
|
if stdbool: conf.env.Append(CPPDEFINES = {'HAVE_STDBOOL_H': 1})
|
||||||
if stdint: conf.env.Append(CPPDEFINES = {'HAVE_STDINT_H': 1})
|
if stdint: conf.env.Append(CPPDEFINES = {'HAVE_STDINT_H': 1})
|
||||||
|
|||||||
Reference in New Issue
Block a user