Added check for datalink layer define.
This commit is contained in:
@@ -39,6 +39,12 @@
|
|||||||
// However, it could handle multiple data links with the
|
// However, it could handle multiple data links with the
|
||||||
// addition of passing a network number or datalink number
|
// addition of passing a network number or datalink number
|
||||||
// as part of the calls.
|
// as part of the calls.
|
||||||
|
#if defined(BACDL_ARCNET) || defined(BACDL_MSTP) || \
|
||||||
|
defined(BACDL_ETHERNET) || defined(BACDL_BIP)
|
||||||
|
/* valid! */
|
||||||
|
#else
|
||||||
|
#error BACDL_ARCNET, BACDL_MSTP, BACDL_ETHERNET, or BACDL_BIP must be defined!
|
||||||
|
#endif
|
||||||
|
|
||||||
/* returns number of bytes sent on success, negative on failure */
|
/* returns number of bytes sent on success, negative on failure */
|
||||||
int datalink_send_pdu(
|
int datalink_send_pdu(
|
||||||
|
|||||||
Reference in New Issue
Block a user