[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r12164 - in /libdfp/trunk: ChangeLog README.user
- To: commits@xxxxxxxxxx
- Subject: [commits] r12164 - in /libdfp/trunk: ChangeLog README.user
- From: ryanarn@xxxxxxxxxx
- Date: Mon, 29 Nov 2010 16:34:36 -0000
Author: ryanarn
Date: Mon Nov 29 08:34:35 2010
New Revision: 12164
Log:
Using dfp/math.h shouldn't require #include <dfp/math.h>. This change to the
documentation indicates how the user can simply use #include <math.h> to pick
up the DFP math.h prototypes and macros.
2010-11-29 Ryan S. Arnold <rsa@xxxxxxxxxx>
* README.user: Added clarification of how to include dfp/math.h.
Modified:
libdfp/trunk/ChangeLog
libdfp/trunk/README.user
Modified: libdfp/trunk/ChangeLog
==============================================================================
--- libdfp/trunk/ChangeLog (original)
+++ libdfp/trunk/ChangeLog Mon Nov 29 08:34:35 2010
@@ -1,3 +1,7 @@
+2010-11-29 Ryan S. Arnold <rsa@xxxxxxxxxx>
+
+ * README.user: Added clarification of how to include dfp/math.h.
+
2010-11-29 Ryan S. Arnold <rsa@xxxxxxxxxx>
* dfp/math.h: Move #include_next <math.h> so that if the compiler
Modified: libdfp/trunk/README.user
==============================================================================
--- libdfp/trunk/README.user (original)
+++ libdfp/trunk/README.user Mon Nov 29 08:34:35 2010
@@ -247,6 +247,16 @@
This mechanism allows Libdfp to add the Decimal interfaces required by the
specification to the aforementioned headers.
+In order to pick up the Libdfp math.h prototypes and classification macro
+overrides compile with the following:
+
+-I/pathto/include/dfp/ -D__STDC_WANT_DEC_FP__
+
+And then in the application source simply using the following include will
+pick up both /pathto/include/dfp/math.h and /usr/include/math.h:
+
+#include <math.h>
+
---------------------------------------------------------------------------
7. Compile and Link