Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / getopt / getopt.h
index 0311b078b71e99238253de5177ce7f51811f7c93..117608f485e7b3bb4e9e37ae96c9016dc2147908 100644 (file)
@@ -33,8 +33,6 @@
 #ifndef _GETOPT_H_
 #define _GETOPT_H_
 
-#include <sys/cdefs.h>
-
 /*
  * GNU-like getopt_long() and 4.4BSD getsubopt()/optreset extensions
  */
 #define required_argument  1
 #define optional_argument  2
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct option {
        /* name of long option */
        const char *name;
@@ -56,7 +58,6 @@ struct option {
        int val;
 };
 
-__BEGIN_DECLS
 int     getopt_long(int, char * const *, const char *,
            const struct option *, int *);
 int     getopt_long_only(int, char * const *, const char *,
@@ -73,6 +74,9 @@ extern   int optopt;
 extern   int optreset;
 extern   char *suboptarg;               /* getsubopt(3) external variable */
 #endif
-__END_DECLS
+
+#ifdef __cplusplus
+}
+#endif
  
 #endif /* !_GETOPT_H_ */