Module Name: src Committed By: nonaka Date: Thu Jun 23 12:16:03 UTC 2011
Modified Files: src/sys/sys: cdefs.h Log Message: Added __packed define to be able to use eMbedded Visual C++ for building hpcboot.exe. To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/sys/sys/cdefs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/cdefs.h diff -u src/sys/sys/cdefs.h:1.85 src/sys/sys/cdefs.h:1.86 --- src/sys/sys/cdefs.h:1.85 Thu Jun 16 13:51:26 2011 +++ src/sys/sys/cdefs.h Thu Jun 23 12:16:03 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: cdefs.h,v 1.85 2011/06/16 13:51:26 joerg Exp $ */ +/* $NetBSD: cdefs.h,v 1.86 2011/06/23 12:16:03 nonaka Exp $ */ /* * Copyright (c) 1991, 1993 @@ -302,6 +302,8 @@ #define __packed _Pragma("packed 1") #define __aligned(x) _Pragma("aligned " __STRING(x)) #define __section(x) _Pragma("section " ## x) +#elif defined(_MSC_VER) +#define __packed /* ignore */ #else #define __packed error: no __packed for this compiler #define __aligned(x) error: no __aligned for this compiler