From: Heiga Z. <hei...@us...> - 2007-10-16 02:21:44
|
Update of /cvsroot/sp-tk/SPTK/src/bin/ulaw In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11613/src/bin/ulaw Modified Files: ulaw.c _ulaw.c Log Message: Arrange spaces for macros. Wrap strrchr() by rindex() if string.h does not exist. Index: ulaw.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/ulaw/ulaw.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** ulaw.c 9 Oct 2007 10:07:07 -0000 1.16 --- ulaw.c 16 Oct 2007 02:20:59 -0000 1.17 *************** *** 78,88 **** /* Standard C Libraries */ #include <stdio.h> ! #include <string.h> #include <stdlib.h> #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 78,97 ---- /* Standard C Libraries */ #include <stdio.h> ! ! #ifdef HAVE_STRING_H ! # include <string.h> ! #else ! # include <strings.h> ! # ifndef HAVE_STRRCHR ! # define strrchr rindex ! # endif ! #endif ! #include <stdlib.h> #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif Index: _ulaw.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/ulaw/_ulaw.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** _ulaw.c 8 Oct 2007 16:49:30 -0000 1.8 --- _ulaw.c 16 Oct 2007 02:20:59 -0000 1.9 *************** *** 77,83 **** #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 77,83 ---- #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif |