X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsvec.h;h=0ee058c1ea4ef0c0d6813d09e871b6baf4c166fc;hb=f6d1465cec98fd7e83845d24fb394145bbbcf531;hp=ff5619732be01f2498051c6b37a179022a8bfd14;hpb=8ecd53084ce42e2e868a9c24c57b2d9a7e59cfc2;p=openvswitch diff --git a/lib/svec.h b/lib/svec.h index ff561973..0ee058c1 100644 --- a/lib/svec.h +++ b/lib/svec.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2011 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,6 +20,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + struct svec { char **names; size_t n; @@ -67,4 +71,8 @@ void svec_pop_back(struct svec *); : 0); \ (INDEX)++) +#ifdef __cplusplus +} +#endif + #endif /* svec.h */