Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-12-21 15:23:16 +0000
committerStijn Buys <ingar@osirion.org>2008-12-21 15:23:16 +0000
commit7d06239dcc150a7bd2521972ee680fd2c9003580 (patch)
tree777070bc639132c12418b33002e3159f7415152f /src/render
parent7857210368178b26b8f863a296094518aaff5174 (diff)
win32 build updates
Diffstat (limited to 'src/render')
-rw-r--r--src/render/image.cc2
-rw-r--r--src/render/jpgfile.cc6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/render/image.cc b/src/render/image.cc
index e740d56..196eec9 100644
--- a/src/render/image.cc
+++ b/src/render/image.cc
@@ -62,7 +62,7 @@ void Image::pad()
for (size_t y =0; y < h; y++) {
memcpy((void *)&image_new[y * image_width * image_channels],
- (void *)image_data[y * w * image_channels], (size_t) w);
+ (void *)&image_data[y * w * image_channels], (size_t) w);
}
free(image_data);
diff --git a/src/render/jpgfile.cc b/src/render/jpgfile.cc
index 872233f..7713a07 100644
--- a/src/render/jpgfile.cc
+++ b/src/render/jpgfile.cc
@@ -18,6 +18,12 @@ http://www.zarb.org/~gc/html/libpng.html
#include "render/jpgfile.h"
#include "sys/sys.h"
+// work around for the win32 build
+#ifdef _WIN32
+#ifdef HAVE_STDLIB_H
+#undef HAVE_STDLIB_H
+#endif
+#endif
extern "C" {
#include "jpeglib.h"
}