Add external c declaration for c++

To make sure c++ name mangling works correctly c code should be noted "extern"

Signed-off-by: Norbert Pocs <npocs@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Norbert Pocs
2022-10-24 12:50:46 +02:00
committed by Jakub Jelen
parent 5e81eec4ec
commit d1947b55ec
42 changed files with 335 additions and 0 deletions

View File

@@ -22,6 +22,10 @@
#define STRING_H_
#include "libssh/priv.h"
#ifdef __cplusplus
extern "C" {
#endif
/* must be 32 bits number + immediately our data */
#ifdef _MSC_VER
#pragma pack(1)
@@ -38,4 +42,8 @@ __attribute__ ((packed))
#endif
;
#ifdef __cplusplus
}
#endif
#endif /* STRING_H_ */