[PATCH] D13937: [obsequi] Replace non-standard u_intX_t types with the uintX_t ones from stdint.h.

Vasileios Kalintiris via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 05:31:02 PDT 2015


vkalintiris created this revision.
vkalintiris added a subscriber: llvm-commits.

Additionally, allow the compiler to choose the default C++ ABI library
for MIPS targets, instead of forcing the usage of libsupc++.

http://reviews.llvm.org/D13937

Files:
  MultiSource/Applications/obsequi/Makefile
  MultiSource/Applications/obsequi/utils.h

Index: MultiSource/Applications/obsequi/utils.h
===================================================================
--- MultiSource/Applications/obsequi/utils.h
+++ MultiSource/Applications/obsequi/utils.h
@@ -10,16 +10,17 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include <stdint.h>
 
 
 //#################################################################
 // Define a couple of types which I like to use.
 //#################################################################
 
-typedef  u_int8_t   u8bit;
-typedef  u_int16_t  u16bit;
-typedef  u_int32_t  u32bit;
-typedef  u_int64_t  u64bit;
+typedef  uint8_t    u8bit;
+typedef  uint16_t   u16bit;
+typedef  uint32_t   u32bit;
+typedef  uint64_t   u64bit;
 
 typedef  int16_t    s16bit;
 typedef  int32_t    s32bit;
Index: MultiSource/Applications/obsequi/Makefile
===================================================================
--- MultiSource/Applications/obsequi/Makefile
+++ MultiSource/Applications/obsequi/Makefile
@@ -9,7 +9,7 @@
 CPPFLAGS += -DHASHCODEBITS=23
 endif
 
-ifneq ($(ARCH),PowerPC)
+ifeq (,$(filter $(ARCH),PowerPC Mips))
 LDFLAGS = -lsupc++
 LIBS += -lsupc++
 endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13937.37994.patch
Type: text/x-patch
Size: 1168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151021/7e780902/attachment.bin>


More information about the llvm-commits mailing list