]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/session.h
Adding 'extern "C" {' and '}' declarations to exported header files
[ppp.git] / pppd / session.h
index 0047db6646ffe5042b7ab9389211e65db58d12c2..499549ce03f62120183fc5823c98e8337a08e4d3 100644 (file)
  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
+#ifndef PPP_SESSION_H
+#define PPP_SESSION_H
+
 #include "pppdconf.h"
 
-#ifndef __SESSION_H
-#define __SESSION_H
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #define SESS_AUTH  1   /* Check User Authentication */
 #define SESS_ACCT  2   /* Check Account Validity */
@@ -89,4 +93,8 @@ session_start(const int flags, const char* user, const char* passwd, const char*
 void
 session_end(const char* tty);
 
+#ifdef __cplusplus
+}
 #endif
+
+#endif // PPP_SESSION_H