Contributed patch: handling c++, non GCC compiler
| | |
| | | |
| | | #include "scpi/scpi.h" |
| | | |
| | | #ifdef __cplusplus |
| | | extern "C" { |
| | | #endif |
| | | |
| | | extern scpi_t scpi_context; |
| | | |
| | | size_t SCPI_Write(scpi_t * context, const char * data, size_t len); |
| | |
| | | |
| | | scpi_result_t SCPI_SystemCommTcpipControlQ(scpi_t * context); |
| | | |
| | | #ifdef __cplusplus |
| | | } |
| | | #endif |
| | | |
| | | #endif // __SCPI_DEF_H_ |
| | | |
| | |
| | | |
| | | #include "scpi/types.h" |
| | | |
| | | #ifdef __cplusplus |
| | | extern "C" { |
| | | #endif |
| | | |
| | | scpi_result_t SCPI_CoreCls(scpi_t * context); |
| | | scpi_result_t SCPI_CoreEse(scpi_t * context); |
| | | scpi_result_t SCPI_CoreEseQ(scpi_t * context); |
| | |
| | | void SCPI_RegSetBits(scpi_t * context, scpi_reg_name_t name, scpi_reg_val_t bits); |
| | | void SCPI_RegClearBits(scpi_t * context, scpi_reg_name_t name, scpi_reg_val_t bits); |
| | | |
| | | #ifdef __cplusplus |
| | | } |
| | | #endif |
| | | |
| | | #endif /* SCPI_IEEE488_H */ |
| | | |
| | |
| | | extern "C" { |
| | | #endif |
| | | |
| | | #if defined(__GNUC__) && (__GNUC__ >= 4) |
| | | #define LOCAL __attribute__((visibility ("hidden"))) |
| | | #else |
| | | #define LOCAL |
| | | #endif |
| | | |
| | | char * strnpbrk(const char *str, size_t size, const char *set) LOCAL; |
| | | bool_t compareStr(const char * str1, size_t len1, const char * str2, size_t len2) LOCAL; |