Skip to content
Snippets Groups Projects
Commit 3aa7e51e410b authored by Jean-Francois Pieronne's avatar Jean-Francois Pieronne
Browse files

First VMS updates, add missing defined symbols

parent 4dc164c6ab08
No related tags found
No related merge requests found
......@@ -212,4 +212,9 @@
# define htobe16(x) be16toh(x)
# endif
#elif defined(__vms)
# define htobe16(x) htons(x)
# define htole16(x) (x)
# define be16toh(x) ntohs(x)
# define le16toh(x) (x)
......@@ -215,4 +220,14 @@
# define htobe32(x) htonl(x)
# define htole32(x) (x)
# define be32toh(x) ntohl(x)
# define le32toh(x) (x)
# define htobe64(x) (((uint64_t)htonl(((uint32_t)(((uint64_t)(x)) >> 32)))) | (((uint64_t)htonl(((uint32_t)(x)))) << 32))
# define htole64(x) (x)
# define be64toh(x) (((uint64_t)ntohl(((uint32_t)(((uint64_t)(x)) >> 32)))) | (((uint64_t)ntohl(((uint32_t)(x)))) << 32))
# define le64toh(x) (x)
typedef uint8_t u_int8_t;
#else
# error platform not supported
......
......@@ -22,6 +22,12 @@
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;
typedef uint64_t u_int64_t;
#elif defined(__vms)
typedef uint8_t u_int8_t;
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;
typedef uint64_t u_int64_t;
#define __attribute__(unused)
#else
#include <stdint.h>
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment