[freestdf-commits] SF.net SVN: freestdf: [286] trunk/libstdf
Status: Beta
Brought to you by:
vapier
From: <va...@us...> - 2007-02-19 04:35:32
|
Revision: 286 http://svn.sourceforge.net/freestdf/?rev=286&view=rev Author: vapier Date: 2007-02-18 20:35:32 -0800 (Sun, 18 Feb 2007) Log Message: ----------- change #if to #ifdef since these things are defined/undefined, not always defined to 0/1 Modified Paths: -------------- trunk/libstdf/include/libstdf_internal.h trunk/libstdf/src/libstdf.c trunk/libstdf/src/rec.c Modified: trunk/libstdf/include/libstdf_internal.h =================================================================== --- trunk/libstdf/include/libstdf_internal.h 2007-02-19 04:33:15 UTC (rev 285) +++ trunk/libstdf/include/libstdf_internal.h 2007-02-19 04:35:32 UTC (rev 286) @@ -105,7 +105,7 @@ /** * @brief Misc cruft for debugging fun. */ -#if HAVE_MCHECK_H +#ifdef HAVE_MCHECK_H # include <mcheck.h> # define _stdf_mtrace() mtrace() # define _stdf_muntrace() muntrace() @@ -114,11 +114,11 @@ # define _stdf_muntrace() #endif -#if HAVE_DMALLOC_H +#ifdef HAVE_DMALLOC_H # include <dmalloc.h> #endif -#if HAVE_EFENCE_H +#ifdef HAVE_EFENCE_H # include <efence.h> #endif Modified: trunk/libstdf/src/libstdf.c =================================================================== --- trunk/libstdf/src/libstdf.c 2007-02-19 04:33:15 UTC (rev 285) +++ trunk/libstdf/src/libstdf.c 2007-02-19 04:35:32 UTC (rev 286) @@ -155,7 +155,7 @@ /* * ZIP SUPPORT */ -#if HAVE_ZIP +#ifdef HAVE_ZIP static int __stdf_open_zip(void *data, int flags, uint32_t mode) { stdf_file *stdf = (stdf_file*)data; @@ -204,7 +204,7 @@ /* * GZIP SUPPORT */ -#if HAVE_GZIP +#ifdef HAVE_GZIP static int __stdf_open_gzip(void *data, int flags, uint32_t mode) { stdf_file *stdf = (stdf_file*)data; @@ -242,7 +242,7 @@ /* * BZIP2 SUPPORT */ -#if HAVE_BZIP2 +#ifdef HAVE_BZIP2 static int __stdf_open_bzip2(void *data, int flags, uint32_t mode) { stdf_file *stdf = (stdf_file*)data; @@ -280,7 +280,7 @@ /* * LZW SUPPORT */ -#if HAVE_LZW +#ifdef HAVE_LZW static int __stdf_open_lzw(void *data, int flags, uint32_t mode) { stdf_file *stdf = (stdf_file*)data; @@ -368,22 +368,22 @@ } switch (ret->file_format) { -#if HAVE_ZIP +#ifdef HAVE_ZIP case STDF_FORMAT_ZIP: ret->fops = &__stdf_fops_zip; break; #endif -#if HAVE_GZIP +#ifdef HAVE_GZIP case STDF_FORMAT_GZIP: ret->fops = &__stdf_fops_gzip; break; #endif -#if HAVE_BZIP2 +#ifdef HAVE_BZIP2 case STDF_FORMAT_BZIP2: ret->fops = &__stdf_fops_bzip2; break; #endif -#if HAVE_LZW +#ifdef HAVE_LZW case STDF_FORMAT_LZW: ret->fops = &__stdf_fops_lzw; break; Modified: trunk/libstdf/src/rec.c =================================================================== --- trunk/libstdf/src/rec.c 2007-02-19 04:33:15 UTC (rev 285) +++ trunk/libstdf/src/rec.c 2007-02-19 04:35:32 UTC (rev 286) @@ -94,7 +94,7 @@ return stdf_rec_names[_stdf_header_to_idx(type, sub)]; } -#if WARN_UNTESTED +#ifdef WARN_UNTESTED #define warn_untested(type) \ do { \ warnf("*********************************************"); \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |