From: Heiga Z. <hei...@us...> - 2007-10-16 02:21:34
|
Update of /cvsroot/sp-tk/SPTK/src/bin/window In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11613/src/bin/window Modified Files: _window.c window.c Log Message: Arrange spaces for macros. Wrap strrchr() by rindex() if string.h does not exist. Index: _window.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/window/_window.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** _window.c 8 Oct 2007 16:49:28 -0000 1.11 --- _window.c 16 Oct 2007 02:20:55 -0000 1.12 *************** *** 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 Index: window.c =================================================================== RCS file: /cvsroot/sp-tk/SPTK/src/bin/window/window.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** window.c 9 Oct 2007 10:07:02 -0000 1.17 --- window.c 16 Oct 2007 02:20:55 -0000 1.18 *************** *** 83,92 **** #include <stdio.h> #include <stdlib.h> ! #include <string.h> #if defined(WIN32) ! #include "SPTK.h" #else ! #include <SPTK.h> #endif --- 83,101 ---- #include <stdio.h> #include <stdlib.h> ! ! #ifdef HAVE_STRING_H ! # include <string.h> ! #else ! # include <strings.h> ! # ifndef HAVE_STRRCHR ! # define strrchr rindex ! # endif ! #endif ! #if defined(WIN32) ! # include "SPTK.h" #else ! # include <SPTK.h> #endif |