diff options
author | goodale <goodale@eff87b29-5268-4891-90a3-a07138403961> | 2000-09-22 15:02:37 +0000 |
---|---|---|
committer | goodale <goodale@eff87b29-5268-4891-90a3-a07138403961> | 2000-09-22 15:02:37 +0000 |
commit | 92bc679d27068ac20b11c79379e20be0a0d37ffe (patch) | |
tree | abf5fa0525e1e4e8da1e930b7a2a1ab02945afee | |
parent | 8b1ad0654692060c6d0ef33c6983a985a7f7d03c (diff) |
Changes necessary for jpegs under NT.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusIO/IOJpeg/trunk@17 eff87b29-5268-4891-90a3-a07138403961
-rw-r--r-- | src/Write2D.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Write2D.c b/src/Write2D.c index a1c2270..a5cec02 100644 --- a/src/Write2D.c +++ b/src/Write2D.c @@ -49,6 +49,12 @@ int IOJpeg_SetDirection(int vdim, int sdim, int ci, int *direction); static int **advertised; +#ifdef _WIN32 +#define FILEOPENSTRING "wb" +#else +#define FILEOPENSTRING "w" +#endif + /******************************************************************** ********************* External Routines ********************** ********************************************************************/ @@ -174,7 +180,7 @@ int IOJpeg_Write2D (cGH *GH, int index, const char *alias) extensions [si],GH->cctk_iteration); } - fdset_2D [si] = fopen (fname, "w"); + fdset_2D [si] = fopen (fname, FILEOPENSTRING); if (! fdset_2D [si]) { CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING, |