[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-glpk] extern "C" should be automatic
From: |
Steven G. Johnson |
Subject: |
[Bug-glpk] extern "C" should be automatic |
Date: |
Tue, 24 May 2005 22:33:52 -0000 |
I'm using GLPK 4.8, and I notice that you still require C++ users to wrap
extern "C" { ... } around the headers.
There is an easy way to make this automatic. Just put:
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
at the beginning of your header file and
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */
at the end. (You'll find this kind of standard boilerplate in many other
header files in /usr/include.)
Cordially,
Steven G. Johnson
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-glpk] extern "C" should be automatic,
Steven G. Johnson <=