diff --git a/recipes/openscenegraph/all/conandata.yml b/recipes/openscenegraph/all/conandata.yml index 094e9853e6fca..c0b17a2382043 100644 --- a/recipes/openscenegraph/all/conandata.yml +++ b/recipes/openscenegraph/all/conandata.yml @@ -36,3 +36,9 @@ patches: patch_source: - https://github.com/openscenegraph/OpenSceneGraph/pull/1296 - https://github.com/openscenegraph/OpenSceneGraph/pull/951 + - patch_file: patches/0012-_FPOSOFF-deprecated.patch + patch_description: _FPOSOFF identifier not found + patch_type: bugfix + patch_source: + - https://github.com/openscenegraph/OpenSceneGraph/issues/1323 + - https://github.com/microsoft/vcpkg/pull/38666/files diff --git a/recipes/openscenegraph/all/patches/0012-_FPOSOFF-deprecated.patch b/recipes/openscenegraph/all/patches/0012-_FPOSOFF-deprecated.patch new file mode 100644 index 0000000000000..7c5aa636e1022 --- /dev/null +++ b/recipes/openscenegraph/all/patches/0012-_FPOSOFF-deprecated.patch @@ -0,0 +1,13 @@ +diff --git a/src/osgPlugins/osga/OSGA_Archive.cpp b/src/osgPlugins/osga/OSGA_Archive.cpp +index b9f518a..19186a7 100644 +--- a/src/osgPlugins/osga/OSGA_Archive.cpp ++++ b/src/osgPlugins/osga/OSGA_Archive.cpp +@@ -77,7 +77,7 @@ inline OSGA_Archive::pos_type ARCHIVE_POS( const std::streampos & pos ) + #else // older Dinkumware (eg: one included in Win Server 2003 Platform SDK ) + fpos_t position = pos.get_fpos_t(); + #endif +- std::streamoff offset = pos.operator std::streamoff( ) - _FPOSOFF( position ); ++ std::streamoff offset = 0; + + return OSGA_Archive::pos_type( position + offset ); + }