summaryrefslogtreecommitdiffstats
path: root/lib/mbswidth.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-09-22 14:47:50 +0000
committerBruno Haible <bruno@clisp.org>2001-09-22 14:47:50 +0000
commit31ee5d561790ff5c148a7afb17b73d4d4ed1ca95 (patch)
tree45dde59c14c77113fc5161df0f4471151cea7ea8 /lib/mbswidth.c
parentfdb5271b8f40aa2ab6edf48086824c56b4808a78 (diff)
downloadexternal_gettext-31ee5d561790ff5c148a7afb17b73d4d4ed1ca95.zip
external_gettext-31ee5d561790ff5c148a7afb17b73d4d4ed1ca95.tar.gz
external_gettext-31ee5d561790ff5c148a7afb17b73d4d4ed1ca95.tar.bz2
Include specification .h file in implementation .c file.
Diffstat (limited to 'lib/mbswidth.c')
-rw-r--r--lib/mbswidth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mbswidth.c b/lib/mbswidth.c
index 69a801c..9d5ebe7 100644
--- a/lib/mbswidth.c
+++ b/lib/mbswidth.c
@@ -21,6 +21,9 @@
# include <config.h>
#endif
+/* Specification. */
+#include "mbswidth.h"
+
/* Get MB_CUR_MAX. */
#include <stdlib.h>
@@ -78,8 +81,6 @@ int wcwidth ();
#undef ISCNTRL
#define ISCNTRL(c) (IN_CTYPE_DOMAIN (c) && iscntrl (c))
-#include "mbswidth.h"
-
/* Returns the number of columns needed to represent the multibyte
character string pointed to by STRING. If a non-printable character
occurs, and MBSW_REJECT_UNPRINTABLE is specified, -1 is returned.