Skip to content

Commit

Permalink
COMP: Include stdio.h for printf
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Feb 18, 2021
1 parent 9f5529f commit 6ce6cbd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Modules/ThirdParty/MINC/src/libminc/libcommon/restructure.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
************************************************************************/
#include <stdlib.h>
#include <memory.h>
#ifdef _DEBUG
#include <stdio.h>
#endif

#include "restructure.h"

Expand Down Expand Up @@ -180,7 +183,7 @@ void restructure_array(size_t ndims, /* Dimension count */
**/

offset_next = index_to_offset(ndims, lengths, index);
#ifdef DEBUG
#ifdef _DEBUG
if (offset_next >= total) {
printf("Fatal - offset %ld out of bounds!\n", offset_next);
printf("lengths %lld,%lld,%lld\n",
Expand Down
3 changes: 3 additions & 0 deletions Modules/ThirdParty/MINC/src/libminc/libsrc2/hyper.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#include <math.h>
#include <stdlib.h>
#include <limits.h>
#ifdef _DEBUG
#include <stdio.h>
#endif

#include "minc2.h"
#include "minc2_private.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#endif
#include "znzlib.h"
#include "errno.h"
#ifdef DEBUG
#include <stdio.h>
#endif

#define NUM_BYTE_VALUES (UCHAR_MAX + 1)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

#include "nifti1.h"
#include "nifti1_io.h"
#ifdef DEBUG
#include <stdio.h>
#endif

#define NUM_BYTE_VALUES (UCHAR_MAX + 1)

Expand Down

0 comments on commit 6ce6cbd

Please sign in to comment.