From af7f7b7515a335b593049f04d4fedff7c7c7d128 Mon Sep 17 00:00:00 2001 From: Anthony Martin Date: Fri, 31 May 2013 15:53:26 -0700 Subject: [PATCH] lib9/utf: remove unneccesary includes R=golang-dev, r, bradfitz CC=golang-dev https://golang.org/cl/8651043 --- src/lib9/utf/rune.c | 2 -- src/lib9/utf/utfecpy.c | 2 +- src/lib9/utf/utflen.c | 2 -- src/lib9/utf/utfnlen.c | 2 -- src/lib9/utf/utfrrune.c | 1 - src/lib9/utf/utfrune.c | 1 - src/lib9/utf/utfutf.c | 1 - 7 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/lib9/utf/rune.c b/src/lib9/utf/rune.c index 818771cfd96..913b786daab 100644 --- a/src/lib9/utf/rune.c +++ b/src/lib9/utf/rune.c @@ -12,8 +12,6 @@ * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. */ -#include -#include #include "utf.h" #include "utfdef.h" diff --git a/src/lib9/utf/utfecpy.c b/src/lib9/utf/utfecpy.c index d6dc091c44d..76fb571d324 100644 --- a/src/lib9/utf/utfecpy.c +++ b/src/lib9/utf/utfecpy.c @@ -11,7 +11,7 @@ * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. */ -#include +#define _BSD_SOURCE 1 #include #include "utf.h" #include "utfdef.h" diff --git a/src/lib9/utf/utflen.c b/src/lib9/utf/utflen.c index 45653d540cd..843e6773fce 100644 --- a/src/lib9/utf/utflen.c +++ b/src/lib9/utf/utflen.c @@ -11,8 +11,6 @@ * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. */ -#include -#include #include "utf.h" #include "utfdef.h" diff --git a/src/lib9/utf/utfnlen.c b/src/lib9/utf/utfnlen.c index d673c82904b..4b02e6a333b 100644 --- a/src/lib9/utf/utfnlen.c +++ b/src/lib9/utf/utfnlen.c @@ -11,8 +11,6 @@ * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. */ -#include -#include #include "utf.h" #include "utfdef.h" diff --git a/src/lib9/utf/utfrrune.c b/src/lib9/utf/utfrrune.c index 95d2a9d8af1..2273ec55170 100644 --- a/src/lib9/utf/utfrrune.c +++ b/src/lib9/utf/utfrrune.c @@ -11,7 +11,6 @@ * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. */ -#include #include #include "utf.h" #include "utfdef.h" diff --git a/src/lib9/utf/utfrune.c b/src/lib9/utf/utfrune.c index b4017d26c6a..863a1846f32 100644 --- a/src/lib9/utf/utfrune.c +++ b/src/lib9/utf/utfrune.c @@ -11,7 +11,6 @@ * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. */ -#include #include #include "utf.h" #include "utfdef.h" diff --git a/src/lib9/utf/utfutf.c b/src/lib9/utf/utfutf.c index ec492316566..79098535ba1 100644 --- a/src/lib9/utf/utfutf.c +++ b/src/lib9/utf/utfutf.c @@ -11,7 +11,6 @@ * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. */ -#include #include #include "utf.h" #include "utfdef.h"