r40: made c++ compatible
[ctsim.git] / include / kmath.h
index 2a8145422162a0e1cf584a5ff29ed474872a91e5..e250a06d40e9a482a75501a6f3c54743e91383b1 100644 (file)
@@ -2,8 +2,11 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: kmath.h,v 1.7 2000/05/04 18:16:34 kevin Exp $
+**  $Id: kmath.h,v 1.8 2000/05/07 12:46:19 kevin Exp $
 **  $Log: kmath.h,v $
+**  Revision 1.8  2000/05/07 12:46:19  kevin
+**  made c++ compatible
+**
 **  Revision 1.7  2000/05/04 18:16:34  kevin
 **  renamed filter definitions
 **
 #include <stdio.h>
 #include <math.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
 #define PI      3.14159265358979323846
 #define HALFPI  1.57079632679489661923 /* PI divided by 2 */
 #define QUARTPI 0.78539816339744830962 /* PI divided by 4 */
@@ -219,7 +226,8 @@ void rotate2d(double x[], double y[], int pts, double angle);
 void xlat2d(double x[], double y[], int pts, double xoffset, double yoffset);
 void scale2d(double x[], double y[], int pts, double xfact, double yfact);
 
-
-
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
 
 #endif