Jelajahi Sumber

Remove include of "solarisfixes.h"

According to tests performed by @hansipie, an include of "solarisfixes.h" is not
required. See discussion:
https://github.com/hansipie/civetweb/commit/97fb2a34e091bbf483fdd34ebe611152825db738#commitcomment-11235602
bel 10 tahun lalu
induk
melakukan
75173d5eee
1 mengubah file dengan 7 tambahan dan 4 penghapusan
  1. 7 4
      src/civetweb.c

+ 7 - 4
src/civetweb.c

@@ -69,7 +69,6 @@ char static_assert_replacement[1];
 	extern char static_assert_replacement[(cond) ? 1 : -1];
 #endif
 
-mg_static_assert(1, "static assert has to be available");
 mg_static_assert(sizeof(int) == 4 || sizeof(int) == 8,
                  "int data type size check");
 mg_static_assert(sizeof(void *) == 4 || sizeof(void *) == 8,
@@ -6457,9 +6456,13 @@ void mg_unlock_context(struct mg_context *ctx)
 /* START OF SHA-1 code
  * Copyright(c) By Steve Reid <steve@edmweb.com> */
 #define SHA1HANDSOFF
-#if defined(__sun)
-#include "solarisfixes.h"
-#endif
+
+/* According to current tests (May 2015), the <solarisfixes.h> is not required.
+ *
+ * #if defined(__sun)
+ * #include "solarisfixes.h"
+ * #endif
+ */
 
 static int is_big_endian(void)
 {