vlm | 1f1d8cb | 2004-08-13 16:58:19 +0000 | [diff] [blame] | 1 | #ifndef ASN1C_COMPAT_H |
| 2 | #define ASN1C_COMPAT_H |
| 3 | |
| 4 | #ifdef HAVE_CONFIG_H |
| 5 | #include <config.h> |
| 6 | #endif |
| 7 | |
vlm | 2248d71 | 2004-08-19 13:29:18 +0000 | [diff] [blame] | 8 | /* |
| 9 | * Open the arbitrary file by its base name and extension. |
| 10 | */ |
| 11 | FILE *asn1c_open_file(const char *base_part, const char *extension); |
| 12 | |
| 13 | /* |
| 14 | * Obtain base name and directory name of a path. |
| 15 | * Some systems have them in <libgen.h> as dirname(3) and basename(3). |
| 16 | */ |
vlm | 1f1d8cb | 2004-08-13 16:58:19 +0000 | [diff] [blame] | 17 | char *a1c_basename(const char *path); |
| 18 | char *a1c_dirname(const char *path); |
| 19 | |
| 20 | #endif /* ASN1C_COMPAT_H */ |