]> pd.if.org Git - pdclib/blobdiff - includes/inttypes.h
Added missing float.h. Some touches.
[pdclib] / includes / inttypes.h
index bb52ea9f24c10dc2ca8b596afe4a647311288bdd..4f9f9ce69940c9d138229ab294ba544b096d897c 100644 (file)
@@ -21,13 +21,18 @@ typedef struct
 imaxdiv_t;
 
 // ----------------------------------------------------------------------------
-// FUNCTIONS
+// FUNCTIONS - C++
 
-intmax_t imaxabs( intmax_t i );
-intmax_t abs( intmax_t i ); [C++ only]
+#ifdef __cplusplus
+intmax_t abs( intmax_t i );
+imaxdiv_t div( intmax_t numer, intmax_t denom );
+#endif __cplusplus
+
+// ----------------------------------------------------------------------------
+// FUNCTIONS - Standard C
 
+intmax_t imaxabs( intmax_t i );
 imaxdiv_t imaxdiv( intmax_t numer, intmax_t denom );
-imaxdiv_t div( intmax_t numer, intmax_t denom ); [C++ only]
 
 intmax_t strtoimax( const char * restrict s, char * * restrict endptr, int base );
 uintmax_t strtoumax( const char * restrict s, char * * restrict endptr, int base );