From: Anthony Martin Date: Fri, 31 May 2013 22:53:26 +0000 (-0700) Subject: lib9/utf: remove unneccesary includes X-Git-Tag: go1.2rc2~1364 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=af7f7b7515a335b593049f04d4fedff7c7c7d128;p=gostls13.git lib9/utf: remove unneccesary includes R=golang-dev, r, bradfitz CC=golang-dev https://golang.org/cl/8651043 --- diff --git a/src/lib9/utf/rune.c b/src/lib9/utf/rune.c index 818771cfd9..913b786daa 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 d6dc091c44..76fb571d32 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 45653d540c..843e6773fc 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 d673c82904..4b02e6a333 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 95d2a9d8af..2273ec5517 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 b4017d26c6..863a1846f3 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 ec49231656..79098535ba 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"