Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only use strings.h when not targeting Win32 #2420

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

nadenf
Copy link

@nadenf nadenf commented Apr 30, 2023

When targeting Win32, msvc_compat/strings.h should be used instead of strings.h.

Without this PR getting this error when compiling using NodeJS gyp build:

D:\a\rocksdb\rocksdb\deps\jemalloc\jemalloc\include\jemalloc\jemalloc.h(99,10): fatal  error C1083: Cannot open include file: 'strings.h': No such file or directory [D:\a\rocksdb\rocksdb\deps\rocksdb\rocksdb.vcxproj]

@nadenf nadenf force-pushed the fix-windows branch 2 times, most recently from d2efb71 to 9b5936d Compare April 30, 2023 08:15
@@ -2,7 +2,11 @@
#include <stdbool.h>
#include <stdint.h>
#include <limits.h>
#include <strings.h>
#ifdef _WIN32
# include "msvc_compat/strings.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have this include here: https://github.com/jemalloc/jemalloc/blob/dev/include/jemalloc/internal/jemalloc_internal_decls.h#L8

Shouldn't this be covered with that? Sorry I don't have the platform you are using so can't try it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants