diff --git a/Visual Studio Projects/B5500.vcproj b/Visual Studio Projects/B5500.vcproj index 15483ebd..dc7a958e 100644 --- a/Visual Studio Projects/B5500.vcproj +++ b/Visual Studio Projects/B5500.vcproj @@ -42,7 +42,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="./;../;../../windows-build/PCRE/include/" - PreprocessorDefinitions="_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;SIM_NEED_GIT_COMMIT_ID;HAVE_PCREPOSIX_H;PCRE_STATIC" + PreprocessorDefinitions="_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;USE_SIM_CARD;SIM_NEED_GIT_COMMIT_ID;HAVE_PCREPOSIX_H;PCRE_STATIC" KeepComments="false" MinimalRebuild="true" BasicRuntimeChecks="0" @@ -125,7 +125,7 @@ InlineFunctionExpansion="1" OmitFramePointers="true" AdditionalIncludeDirectories="./;../;../../windows-build/PCRE/include/" - PreprocessorDefinitions="_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;SIM_NEED_GIT_COMMIT_ID;HAVE_PCREPOSIX_H;PCRE_STATIC" + PreprocessorDefinitions="_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;USE_SIM_CARD;SIM_NEED_GIT_COMMIT_ID;HAVE_PCREPOSIX_H;PCRE_STATIC" StringPooling="true" RuntimeLibrary="0" EnableFunctionLevelLinking="true" @@ -225,7 +225,7 @@ > #include "sim_defs.h" @@ -1034,3 +1036,4 @@ t_stat sim_card_attach_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, cons } +#endif /* USE_SIM_CARD */ diff --git a/B5500/sim_card.h b/sim_card.h similarity index 94% rename from B5500/sim_card.h rename to sim_card.h index ee323546..0dcf4e7e 100644 --- a/B5500/sim_card.h +++ b/sim_card.h @@ -59,6 +59,12 @@ or card format binary. */ +#ifndef SIM_CARD_H_ +#define SIM_CARD_H_ 0 + +#ifdef __cplusplus +extern "C" { +#endif #define DEBUG_CARD 0x0000010 /* Show details */ @@ -111,3 +117,9 @@ t_stat sim_card_attach_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, cons extern const char sim_six_to_ascii[64]; extern const char sim_ascii_to_six[128]; extern const uint8 sim_parity_table[64]; + +#ifdef __cplusplus +} +#endif + +#endif