dcdefine.h

00001 /*
00002  *
00003  *  Copyright (C) 1994-2005, OFFIS
00004  *
00005  *  This software and supporting documentation were developed by
00006  *
00007  *    Kuratorium OFFIS e.V.
00008  *    Healthcare Information and Communication Systems
00009  *    Escherweg 2
00010  *    D-26121 Oldenburg, Germany
00011  *
00012  *  THIS SOFTWARE IS MADE AVAILABLE,  AS IS,  AND OFFIS MAKES NO  WARRANTY
00013  *  REGARDING  THE  SOFTWARE,  ITS  PERFORMANCE,  ITS  MERCHANTABILITY  OR
00014  *  FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES  OR
00015  *  ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND
00016  *  PERFORMANCE OF THE SOFTWARE IS WITH THE USER.
00017  *
00018  *  Module:  dcmdata
00019  *
00020  *  Author:  Andreas Barth
00021  *
00022  *  Purpose: common defines for configuration
00023  *
00024  *  Last Update:      $Author: meichel $
00025  *  Update Date:      $Date: 2005/12/08 16:28:05 $
00026  *  Source File:      $Source: /share/dicom/cvs-depot/dcmtk/dcmdata/include/dcmtk/dcmdata/dcdefine.h,v $
00027  *  CVS/RCS Revision: $Revision: 1.8 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 #ifndef DCDEFINE_H
00035 #define DCDEFINE_H
00036 
00037 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00038 
00039 #define INCLUDE_CSTRING
00040 #include "dcmtk/ofstd/ofstdinc.h"
00041 
00042 /* memzero */
00043 #ifdef HAVE_MEMSET
00044 #  undef memzero
00045 #  define memzero(d, n) memset((d), 0, (n))
00046 #else
00047 #  ifdef HAVE_BZERO
00048 #    undef memzero
00049 #    define memzero(d, n) bzero((d), (n))
00050 #  endif
00051 #endif
00052 
00053 /* memcpy */
00054 #ifndef HAVE_MEMCPY
00055 #  ifdef HAVE_BCOPY
00056 #    undef memcpy
00057 #    define memcpy(d, s, n) bcopy((s), (d), (n))
00058 #  endif
00059 #endif
00060 
00061 /* memmove */
00062 #ifndef HAVE_MEMMOVE
00063 #  ifdef HAVE_BCOPY
00064 #    undef memmove
00065 #    define memmove(d, s, n) bcopy ((s), (d), (n))
00066 #  endif
00067 #endif
00068 
00069 /* memcmp */
00070 #ifndef HAVE_MEMCMP
00071 #  ifdef HAVE_BCMP
00072 #    undef memcmp
00073 #    define memcmp(d, s, n) bcmp((s), (d), (n))
00074 #  endif
00075 #endif
00076 
00077 /* strchr, strrchr */
00078 #ifndef HAVE_STRCHR
00079 #  ifdef HAVE_INDEX
00080 #    undef strchr
00081 #    define strchr index
00082 #    undef strrchr
00083 #    define strrchr rindex
00084 #  endif
00085 #endif
00086 
00087 #endif
00088 
00089 /*
00090  * CVS/RCS Log:
00091  * $Log: dcdefine.h,v $
00092  * Revision 1.8  2005/12/08 16:28:05  meichel
00093  * Changed include path schema for all DCMTK header files
00094  *
00095  * Revision 1.7  2002/11/27 12:07:21  meichel
00096  * Adapted module dcmdata to use of new header file ofstdinc.h
00097  *
00098  * Revision 1.6  2001/06/01 15:48:35  meichel
00099  * Updated copyright header
00100  *
00101  * Revision 1.5  2000/03/08 16:26:12  meichel
00102  * Updated copyright header.
00103  *
00104  * Revision 1.4  1999/03/31 09:24:33  meichel
00105  * Updated copyright header in module dcmdata
00106  *
00107  *
00108  */


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5