Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pb.h
diff options
context:
space:
mode:
authordch <david.hotham@blueyonder.co.uk>2013-04-07 18:28:05 +0400
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-04-08 11:56:13 +0400
commit710465a8e060d5ef7848a6f348f043435b1e39e0 (patch)
tree2ff4e0a9e66ebf78bc2c7c58ddbea1f2f54808dc /pb.h
parent384e686fe6d7b7088cdbc4b44bc988eba3a21945 (diff)
__pragma keyword is only supported by recent Microsoft compilers
Diffstat (limited to 'pb.h')
-rw-r--r--pb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pb.h b/pb.h
index 61649e9..4ce58ac 100644
--- a/pb.h
+++ b/pb.h
@@ -30,7 +30,7 @@
# define PB_PACKED_STRUCT_START _Pragma("pack(push, 1)")
# define PB_PACKED_STRUCT_END _Pragma("pack(pop)")
# define pb_packed
-#elif defined(_MSC_VER)
+#elif defined(_MSC_VER) && (_MSC_VER >= 1500)
/* For Microsoft Visual C++ */
# define PB_PACKED_STRUCT_START __pragma(pack(push, 1))
# define PB_PACKED_STRUCT_END __pragma(pack(pop))