Reformatting code using Kernighan & Ritchie style, tabs, tab width=4.
Command line: astyle --style=kr --indent=force-tab=4 --lineend=linux -n -r <file names>
This commit is contained in:
@@ -21,21 +21,21 @@
|
||||
#define _SOCKET_HELPER_H_
|
||||
|
||||
#ifndef bzero
|
||||
#include <cstring>
|
||||
#define bzero(_ptr, _n) std::memset(_ptr, 0, _n)
|
||||
#include <cstring>
|
||||
#define bzero(_ptr, _n) std::memset(_ptr, 0, _n)
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#ifdef __GNUC__ /* mingw provides stdint.h */
|
||||
#include <stdint.h>
|
||||
typedef uint16_t u_int16_t;
|
||||
typedef uint32_t u_int32_t;
|
||||
#include <stdint.h>
|
||||
typedef uint16_t u_int16_t;
|
||||
typedef uint32_t u_int32_t;
|
||||
#else
|
||||
typedef unsigned __int16 u_int16_t;
|
||||
typedef unsigned __int32 u_int32_t;
|
||||
typedef __int16 int16_t;
|
||||
typedef __int32 int32_t;
|
||||
typedef unsigned __int16 u_int16_t;
|
||||
typedef unsigned __int32 u_int32_t;
|
||||
typedef __int16 int16_t;
|
||||
typedef __int32 int32_t;
|
||||
#endif
|
||||
|
||||
typedef unsigned char u_char;
|
||||
|
||||
Reference in New Issue
Block a user