mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
- add support for some C++ programs
PR: 86304 Submitted by: Craig Rodrigues
This commit is contained in:
parent
ac9464e934
commit
2353e6967f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=143320
15
graphics/jpeg/files/patch-jmorecfg.h
Normal file
15
graphics/jpeg/files/patch-jmorecfg.h
Normal file
@ -0,0 +1,15 @@
|
||||
--- jmorecfg.h.orig Sun Sep 18 14:53:48 2005
|
||||
+++ jmorecfg.h Sun Sep 18 14:54:27 2005
|
||||
@@ -187,8 +187,11 @@
|
||||
/* a function referenced thru EXTERNs: */
|
||||
#define GLOBAL(type) type
|
||||
/* a reference to a GLOBAL function: */
|
||||
+#ifdef __cplusplus
|
||||
+#define EXTERN(type) extern "C" type
|
||||
+#else
|
||||
#define EXTERN(type) extern type
|
||||
-
|
||||
+#endif
|
||||
|
||||
/* This macro is used to declare a "method", that is, a function pointer.
|
||||
* We want to supply prototype parameters if the compiler can cope.
|
Loading…
Reference in New Issue
Block a user