Skip to content
Snippets Groups Projects
Commit 0d8d278f authored by Benjamin Valentin's avatar Benjamin Valentin
Browse files

include stdint.h

parent 62de6c12
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#ifndef COMMON_H_ #ifndef COMMON_H_
#define COMMON_H_ #define COMMON_H_
#include <string.h> #include <string.h>
#include <stdint.h>
#define BITSET(var,pos) ((var) & (1<<(pos))) #define BITSET(var,pos) ((var) & (1<<(pos)))
#define HTONS(a) ((((uint16_t) (a) >> 8) & 0xff) | ((((uint16_t) (a)) & 0xff) << 8)) #define HTONS(a) ((((uint16_t) (a) >> 8) & 0xff) | ((((uint16_t) (a)) & 0xff) << 8))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment