Make headers in include/ digestible for C++

Also removes trailing whitespace in these files.

Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
This commit is contained in:
Arne Redlich
2012-07-08 13:38:41 +02:00
parent 121e555897
commit 6edf993507
3 changed files with 38 additions and 14 deletions

View File

@@ -24,6 +24,10 @@
#define ssize_t SSIZE_T
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifndef discard_const
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
#endif
@@ -267,5 +271,9 @@ struct scsi_task *iscsi_scsi_get_task_from_pdu(struct iscsi_pdu *pdu);
int iscsi_reconnect(struct iscsi_context *iscsi);
#ifdef __cplusplus
}
#endif
#endif /* __iscsi_private_h__ */