Patch to get OpenJpeg compiling in Borland/CodeGear/Embarcadero C++ Builder

108 views
Skip to first unread message

Galfar

unread,
Dec 24, 2009, 6:48:55 PM12/24/09
to OpenJPEG
Here is a simple patch needed for OpenJpeg to successfully compile and
link using C++ Builder:


Index: opj_includes.h
===================================================================
--- opj_includes.h (revision 541)
+++ opj_includes.h (working copy)
@@ -86,8 +86,8 @@
#endif
#endif

-/* MSVC does not have lrintf */
-#ifdef _MSC_VER
+/* MSVC and Borland C do not have lrintf */
+#if defined(_MSC_VER) || defined(__BORLANDC__)
static INLINE long lrintf(float f){
int i;

Reply all
Reply to author
Forward
0 new messages