[前][次][番号順一覧][スレッド一覧]

ruby-changes:34810

From: nobu <ko1@a...>
Date: Mon, 21 Jul 2014 21:13:12 +0900 (JST)
Subject: [ruby-changes:34810] nobu:r46893 (trunk): Makefile.sub: no PACKED_STRUCT on old VC

nobu	2014-07-21 21:13:07 +0900 (Mon, 21 Jul 2014)

  New Revision: 46893

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46893

  Log:
    Makefile.sub: no PACKED_STRUCT on old VC
    
    * win32/Makefile.sub (PACKED_STRUCT): __pragma extension is
      available since VC9.

  Modified files:
    trunk/win32/Makefile.sub
Index: win32/Makefile.sub
===================================================================
--- win32/Makefile.sub	(revision 46892)
+++ win32/Makefile.sub	(revision 46893)
@@ -575,8 +575,10 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/ https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L575
 #define FUNC_FASTCALL(x) __fastcall x
 !if $(MSC_VER) >= 1500
 #define RUBY_FUNCTION_NAME_STRING __FUNCTION__
-!endif
 #define PACKED_STRUCT(x) __pragma(pack(push, 1)) x __pragma(pack(pop))
+!else
+#define PACKED_STRUCT(x) x
+!endif
 !if "$(ARCH)" == "x86" || "$(ARCH)" == "x64" || "$(ARCH)" == "ia64"
 #define PACKED_STRUCT_UNALIGNED(x) PACKED_STRUCT(x)
 !else

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]