Back to index

tetex-bin  3.0
c-dir.h
Go to the documentation of this file.
00001 /* c-dir.h: directory headers.
00002 
00003 Copyright (C) 1992, 93, 94 Free Software Foundation, Inc.
00004 
00005 This library is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU Library General Public
00007 License as published by the Free Software Foundation; either
00008 version 2 of the License, or (at your option) any later version.
00009 
00010 This library is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 Library General Public License for more details.
00014 
00015 You should have received a copy of the GNU Library General Public
00016 License along with this library; if not, write to the Free Software
00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
00018 
00019 #ifndef KPATHSEA_C_DIR_H
00020 #define KPATHSEA_C_DIR_H
00021 
00022 #ifdef WIN32
00023 
00024 #include <direct.h>
00025 
00026 #else /* not WIN32 */
00027 
00028 /* Use struct dirent instead of struct direct.  */
00029 #ifdef HAVE_DIRENT_H
00030 #include <dirent.h>
00031 #define NAMLEN(dirent) strlen ((dirent)->d_name)
00032 #else /* not DIRENT */
00033 #define dirent direct
00034 #define NAMLEN(dirent) ((dirent)->d_namlen)
00035 
00036 #ifdef HAVE_SYS_NDIR_H
00037 #include <sys/ndir.h>
00038 #endif
00039 
00040 #ifdef HAVE_SYS_DIR_H
00041 #include <sys/dir.h>
00042 #endif
00043 
00044 #ifdef HAVE_NDIR_H
00045 #include <ndir.h>
00046 #endif
00047 
00048 #endif /* not DIRENT */
00049 
00050 #endif /* not WIN32 */
00051 
00052 #endif /* not KPATHSEA_C_DIR_H */