X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getopt_long.h;h=dbf799276993640fb08d21d7401da3c7406c43e8;hb=70491a12902e89b85cfa6b44a7b7fbe066ee2ac1;hp=a1a9add17677e750850209e1bf293d258021a610;hpb=51d85e945d26324e50d6406829ce006ccc9eb1c0;p=mothur.git diff --git a/getopt_long.h b/getopt_long.h index a1a9add..dbf7992 100644 --- a/getopt_long.h +++ b/getopt_long.h @@ -28,6 +28,10 @@ #ifndef _GETOPT_H +#ifdef __cplusplus +extern "C" { +#endif + struct option { const char *name; int has_arg; @@ -49,4 +53,8 @@ int getopt_long(int argc, char **argv, struct option *longopts, int *indexptr); +#ifdef __cplusplus +} +#endif + #endif /* _GETOPT_H */