Giter Club home page Giter Club logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Sorry but I did not mean a minor glitch, but actually a compiler error.  The 
above patch allows a successful compilation.

Original comment by [email protected] on 29 Dec 2013 at 9:23

from snappy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Hi,

This has been discussed in previous bugs; the short version is that your 
config.h file is expected to supply this macro, not snappy.h. This patch would 
be wrong for MinGW, and in general, we try to avoid too many compiler-specific 
incantations outside config.h, which is where they belong.

Original comment by [email protected] on 30 Dec 2013 at 11:09

  • Changed state: Invalid

from snappy.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Ah, I see, sorry.  At any rate, in case anyone else finds this report, the next 
patch works well in both MSVC and MINGW setups:

--- a/snappy-1.1.1/snappy.h
+++ b/snappy-1.1.1/snappy.h
@@ -44,6 +44,14 @@

 #include "snappy-stubs-public.h"

+// Windows does not define ssize_t by default.  This is a workaround.
+#if defined(_WIN32) && !defined(__MINGW32__)
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#endif
+
+
 namespace snappy {
   class Source;
   class Sink;

Original comment by [email protected] on 30 Dec 2013 at 12:25

from snappy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.