Skip to content

Commit

Permalink
Merge pull request #3 from esteve/fix-stdint-includes
Browse files Browse the repository at this point in the history
Pull request merged
  • Loading branch information
Mallets authored Oct 20, 2020
2 parents a5962bd + cb6ad7e commit ced56a0
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/zenoh/iobuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef ZENOH_C_IOBUF_H_
#define ZENOH_C_IOBUF_H_

#include <stdint.h>
#include "zenoh/types.h"

typedef struct
Expand Down
1 change: 1 addition & 0 deletions include/zenoh/net/codec.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef ZENOH_C_NET_CODEC_H
#define ZENOH_C_NET_CODEC_H

#include <stdint.h>
#include "zenoh/codec.h"
#include "zenoh/net/result.h"
#include "zenoh/net/types.h"
Expand Down
1 change: 1 addition & 0 deletions include/zenoh/net/private/msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef ZENOH_C_NET_MSG_H
#define ZENOH_C_NET_MSG_H

#include <stdint.h>
#include "zenoh/net/private/types.h"

// NOTE: 16 bits (2 bytes) may be prepended to the serialized message indicating the total length
Expand Down
1 change: 1 addition & 0 deletions include/zenoh/net/private/msgcodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef ZENOH_C_NET_MSGCODEC_H
#define ZENOH_C_NET_MSGCODEC_H

#include <stdint.h>
#include "zenoh/net/codec.h"
#include "zenoh/net/result.h"
#include "zenoh/net/types.h"
Expand Down
1 change: 1 addition & 0 deletions include/zenoh/net/private/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define ZENOH_C_NET_H

// @TODO: remote the platform-specific include
#include <stdint.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <ifaddrs.h>
Expand Down
1 change: 1 addition & 0 deletions include/zenoh/net/session.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef ZENOH_C_NET_SESSION_H
#define ZENOH_C_NET_SESSION_H

#include <stdint.h>
#include "zenoh/net/types.h"

/*------------------ Scout/Open/Close ------------------*/
Expand Down
1 change: 1 addition & 0 deletions include/zenoh/net/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef ZENOH_C_NET_TYPES_H_
#define ZENOH_C_NET_TYPES_H_

#include <stdint.h>
#include <string.h>
#include "zenoh/iobuf.h"
#include "zenoh/net/result.h"
Expand Down
1 change: 1 addition & 0 deletions include/zenoh/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef ZENOH_C_TYPES_H_
#define ZENOH_C_TYPES_H_

#include <stdint.h>
#include <stdlib.h>
#include "zenoh/result.h"
#include "zenoh/collection.h"
Expand Down
1 change: 1 addition & 0 deletions src/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* ADLINK zenoh team, <[email protected]>
*/

#include <stdint.h>
#include <stdio.h>
#include "zenoh/codec.h"
#include "zenoh/net/codec.h"
Expand Down
1 change: 1 addition & 0 deletions src/iobuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* ADLINK zenoh team, <[email protected]>
*/

#include <stdint.h>
#include <string.h>
#include <assert.h>
#include "zenoh/iobuf.h"
Expand Down
1 change: 1 addition & 0 deletions src/net/msgcodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* ADLINK zenoh team, <[email protected]>
*/

#include <stdint.h>
#include <stdio.h>
#include "zenoh/private/logging.h"
#include "zenoh/net/private/codec.h"
Expand Down
1 change: 1 addition & 0 deletions src/net/recv_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* ADLINK zenoh team, <[email protected]>
*/

#include <stdint.h>
#include <stdio.h>
#include <stdatomic.h>
#include "zenoh/net/recv_loop.h"
Expand Down
1 change: 1 addition & 0 deletions src/net/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* ADLINK zenoh team, <[email protected]>
*/

#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
#include "zenoh/net/lease_loop.h"
Expand Down
1 change: 1 addition & 0 deletions src/net/unix/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
Expand Down
1 change: 1 addition & 0 deletions test/zn_msgcodec_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* ADLINK zenoh team, <[email protected]>
*/
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stddef.h>
#include <time.h>
Expand Down

0 comments on commit ced56a0

Please sign in to comment.