
* Bump the package API of the `builtin` repo to `v2.0` * Move `var/spack/repos/builtin` -> `var/spack/repos/spack_repo/builtin` * Move test repos `var/spack/repos/{builtin.mock,tutorial,...}` -> `var/spack/test_repos/` * Update package dir names to v2 format (`-` -> `_` etc) * Change absolute imports `from spack.pkg.builtin.my_pkg ...` to relative imports `from ..my_pkg.package ...` Users who have a repo on top of builtin should change imports from ```python from spack.pkg.builtin.my_pkg import MyPkg ``` to ```python from spack_repo.builtin.packages.my_pkg.package import MyPkg ``` and can configure their editors with ``` PYTHONPATH=$spack/lib/spack:$spack/var/spack/repos ``` [skip-verify-checksums]
16 lines
383 B
Diff
16 lines
383 B
Diff
diff --git a/src/osgPlugins/jp2/ReaderWriterJP2.cpp b/src/osgPlugins/jp2/ReaderWriterJP2.cpp
|
|
index 7b3c6cc..d949c2c 100644
|
|
--- a/src/osgPlugins/jp2/ReaderWriterJP2.cpp
|
|
+++ b/src/osgPlugins/jp2/ReaderWriterJP2.cpp
|
|
@@ -15,6 +15,10 @@
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
+#ifndef SIZE_MAX
|
|
+#define SIZE_MAX ((size_t)(-1))
|
|
+#endif
|
|
+
|
|
extern "C"
|
|
{
|
|
#include <jasper/jasper.h>
|