Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/prism/internal/bit.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
#if defined(__GNUC__) || defined(__clang__)
#define pm_ctzll(v) ((unsigned) __builtin_ctzll(v))
#elif defined(_MSC_VER)
#elif defined(_MSC_VER) && defined(_WIN64)
#include <intrin.h>
#include <stdint.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/prism/ffi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def self.with
# pointer directly; for files it uses a pm_source_t under the hood.
class PrismSource # :nodoc:
PLATFORM_EXPECTS_UTF8 =
RbConfig::CONFIG["host_os"].match?(/bccwin|cygwin|djgpp|mingw|mswin|wince|darwin/i)
RbConfig::CONFIG["host_os"].match?(/cygwin|mingw|mswin|darwin/i)

attr_reader :pointer, :length

Expand Down
2 changes: 1 addition & 1 deletion test/prism/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def self.each_encoding

# True if the current platform is Windows.
def self.windows?
RbConfig::CONFIG["host_os"].match?(/bccwin|cygwin|djgpp|mingw|mswin|wince/i)
RbConfig::CONFIG["host_os"].match?(/cygwin|mingw|mswin/i)
end

# All versions that prism can parse
Expand Down
Loading