mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-30 22:05:20 +00:00
some hash define added which are used in multiple file
This commit is contained in:
parent
1e75295939
commit
f66825ae1c
16
src/utility.h
Normal file
16
src/utility.h
Normal file
@ -0,0 +1,16 @@
|
||||
#ifndef CC_UTILITY_H
|
||||
#define CC_UTILITY_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
#define RL32(x) (*(unsigned int *)(x))
|
||||
#define RB32(x) (ntohl(*(unsigned int *)(x)))
|
||||
#define RL16(x) (*(unsigned short int*)(x))
|
||||
#define RB16(x) (ntohs(*(unsigned short int*)(x)))
|
||||
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user