repo.or.cz
/
mascara-docs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* reordered a little bit
[mascara-docs.git]
/
i86
/
elks
/
elkscmd
/
inet
/
nettools
/
mylib.h
blob
427ec6be9236c937a5721eca40941833f48bd8f8
1
#ifndef __MYLIB_H__
2
#define __MYLIB_H__
3
4
#ifdef __ELKS__
5
6
#ifndef ntohs
7
#define ntohs(x) ( ((x) >> 8 & 0xff)|((x) << 8) )
8
#define htons(x) ntohs(x)
9
#endif
10
11
#define ntohl(x) ( (((x) >> 24)&0xff)| \
12
(((x) >> 8 )&0xff00)| \
13
(((x) & 0xff00) << 8)| \
14
(((x) & 0xff) << 24) )
15
16
#define htonl(x) ntohl(x)
17
18
#endif
19
20
#endif