瀏覽代碼

fixed possible macro issue mentioned in #39

wangyu- 8 年之前
父節點
當前提交
5651efd165
共有 9 個文件被更改,包括 18 次插入18 次删除
  1. 2 2
      common.h
  2. 2 2
      encrypt.h
  3. 2 2
      lib/aes.h
  4. 2 2
      lib/aes_acc/aesarm.h
  5. 2 2
      lib/aes_acc/aesni.h
  6. 2 2
      lib/aes_acc/asm/arm_arch.h
  7. 2 2
      lib/md5.h
  8. 2 2
      log.h
  9. 2 2
      network.h

+ 2 - 2
common.h

@@ -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>
 

+ 2 - 2
encrypt.h

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

+ 2 - 2
lib/aes.h

@@ -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>
 

+ 2 - 2
lib/aes_acc/aesarm.h

@@ -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

+ 2 - 2
lib/aes_acc/aesni.h

@@ -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

+ 2 - 2
lib/aes_acc/asm/arm_arch.h

@@ -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)

+ 2 - 2
lib/md5.h

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

+ 2 - 2
log.h

@@ -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>

+ 2 - 2
network.h

@@ -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;