certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/include certi.hh


From: CERTI CVS commits
Subject: [certi-cvs] certi/include certi.hh
Date: Fri, 06 Sep 2013 12:50:16 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      13/09/06 12:50:16

Modified files:
        include        : certi.hh 

Log message:
        Should fix compilation with Visual Studio 2012.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/include/certi.hh?cvsroot=certi&r1=3.52&r2=3.53

Patches:
Index: certi.hh
===================================================================
RCS file: /sources/certi/certi/include/certi.hh,v
retrieving revision 3.52
retrieving revision 3.53
diff -u -b -r3.52 -r3.53
--- certi.hh    13 Jul 2011 15:43:17 -0000      3.52
+++ certi.hh    6 Sep 2013 12:50:14 -0000       3.53
@@ -16,7 +16,7 @@
 // License along with this program ; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 //
-// $Id: certi.hh,v 3.52 2011/07/13 15:43:17 erk Exp $
+// $Id: certi.hh,v 3.53 2013/09/06 12:50:14 erk Exp $
 // ----------------------------------------------------------------------------
 
 #ifndef CERTI_HH_INCLUDED
@@ -32,7 +32,11 @@
                #pragma message("MSVC specific - disabled pragma 4251 and 4290 
(exception specification ignored)")
            #define _CRT_SECURE_NO_DEPRECATE
                #pragma message("JvY - Used _CRT_SECURE_NO_DEPRECATE")
-
+        // Visual C++ 2012 or greater now includes stdint
+        // 
http://stackoverflow.com/questions/126279/c99-stdint-h-header-and-ms-visual-studio
+        #if _MSC_VER >= 1700
+            #include <stdint.h>
+        #else
                #ifndef FAKED_INTTYPES_DEFINED
                #define FAKED_INTTYPES_DEFINED
         typedef unsigned __int64        uint64_t;
@@ -44,6 +48,7 @@
         typedef unsigned __int8                 uint8_t;
         typedef __int8                   int8_t;
         #endif
+        #endif
         #ifdef _M_X64
            #define  CERTI_INT64_CONSTANT(val)  (val##L)
            #define  CERTI_INT64_FORMAT         "l"
@@ -324,4 +329,4 @@
        (uint64_t) CERTI_INT64_CONSTANT(0xff00000000000000U)) >> 56)))
 #endif // CERTI_HH_INCLUDED
 
-// $Id: certi.hh,v 3.52 2011/07/13 15:43:17 erk Exp $
+// $Id: certi.hh,v 3.53 2013/09/06 12:50:14 erk Exp $



reply via email to

[Prev in Thread] Current Thread [Next in Thread]