fixed possible macro issue mentioned in #39

This commit is contained in:
wangyu- 2017-09-01 17:40:55 -05:00
parent 0cc72802e6
commit 5651efd165
9 changed files with 18 additions and 18 deletions

View File

@ -5,8 +5,8 @@
* Author: wangyu
*/
#ifndef COMMON_H_
#define COMMON_H_
#ifndef UDP2RAW_COMMON_H_
#define UDP2RAW_COMMON_H_
#define __STDC_FORMAT_MACROS 1
#include <inttypes.h>

View File

@ -1,5 +1,5 @@
#ifndef _ENCRYPTION_H_
#define _ENCRYPTION_H_
#ifndef UDP2RAW_ENCRYPTION_H_
#define UDP2RAW_ENCRYPTION_H_

View File

@ -2,8 +2,8 @@
* this file comes from https://github.com/kokke/tiny-AES128-C
*/
#ifndef _AES_H_
#define _AES_H_
#ifndef UDP2RAW_AES_H_
#define UDP2RAW_AES_H_
#include <stdint.h>

View File

@ -26,8 +26,8 @@
* This file is part of mbed TLS (https://tls.mbed.org)
*/
#ifndef _AESARM_H_
#define _AESARM_H_
#ifndef UDP2RAW_AESARM_H_
#define UDP2RAW_AESARM_H_
#ifndef AES_ENCRYPT
#define AES_ENCRYPT 1

View File

@ -26,8 +26,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _AESNI_H_
#define _AESNI_H_
#ifndef UDP2RAW_AESNI_H_
#define UDP2RAW_AESNI_H_
#ifndef AES_ENCRYPT
#define AES_ENCRYPT 1

View File

@ -7,8 +7,8 @@
* https://www.openssl.org/source/license.html
*/
#ifndef __ARM_ARCH_H__
# define __ARM_ARCH_H__
#ifndef UDP2RAW__ARM_ARCH_H__
# define UDP2RAW__ARM_ARCH_H__
# if !defined(__ARM_ARCH__)
# if defined(__CC_ARM)

View File

@ -1,5 +1,5 @@
#ifndef _MD5_H_
#define _MD5_H_
#ifndef UDP2RAW_MD5_H_
#define UDP2RAW_MD5_H_
#include <stdint.h>
#include <stddef.h>

4
log.h
View File

@ -1,6 +1,6 @@
#ifndef _LOG_MYLOG_H_
#define _LOG_MYLOG_H_
#ifndef UDP2RAW_LOG_MYLOG_H_
#define UDP2RAW_LOG_MYLOG_H_
#include<common.h>

View File

@ -5,8 +5,8 @@
* Author: wangyu
*/
#ifndef NETWORK_H_
#define NETWORK_H_
#ifndef UDP2RAW_NETWORK_H_
#define UDP2RAW_NETWORK_H_
extern int raw_recv_fd;
extern int raw_send_fd;