include_alias
In this section:
Syntax
#pragma include_alias ("orig_header" , "subst_header") #pragma include_alias (<orig_header> , <subst_header>)
Parameters
| The name of a header file for which you want to create an alias. |
| The alias for the original header file. |
Description
Use this pragma directive to provide an alias for a header file. This is useful for substituting one header file with another, and for specifying an absolute path to a relative file.
This pragma directive must appear before the corresponding #include directives and subst_header must match its corresponding #include directive exactly.
Example
#pragma include_alias (<stdio.h> , <C:\MyHeaders\stdio.h>) #include <stdio.h>
This example will substitute the relative file stdio.h with a counterpart located according to the specified path.