Browse Source

Also enclose variable names with external linkage in __BEGIN_DECLS.

Doesn't matter much since C++ ABI used by GCC doesn't mangle variable
names;  however technically is required by Section 7.5 of the C++ spec.
Discussed with/OK guenther@, matthew@.
OPENBSD_5_0
martynas 13 years ago
parent
commit
3275c17389
2 changed files with 4 additions and 3 deletions
  1. +2
    -1
      src/include/fenv.h
  2. +2
    -2
      src/include/math.h

+ 2
- 1
src/include/fenv.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: fenv.h,v 1.1 2011/04/21 21:12:56 martynas Exp $ */
/* $OpenBSD: fenv.h,v 1.2 2011/05/25 21:46:49 martynas Exp $ */
/* $NetBSD: fenv.h,v 1.2.4.1 2011/02/08 16:18:55 bouyer Exp $ */ /* $NetBSD: fenv.h,v 1.2.4.1 2011/02/08 16:18:55 bouyer Exp $ */
/* /*
@ -43,6 +43,7 @@ int fetestexcept(int);
int fegetround(void); int fegetround(void);
int fesetround(int); int fesetround(int);
int fegetenv(fenv_t *); int fegetenv(fenv_t *);
int feholdexcept(fenv_t *); int feholdexcept(fenv_t *);
int fesetenv(const fenv_t *); int fesetenv(const fenv_t *);


+ 2
- 2
src/include/math.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: math.h,v 1.28 2011/04/28 18:05:39 martynas Exp $ */
/* $OpenBSD: math.h,v 1.29 2011/05/25 21:46:49 martynas Exp $ */
/* /*
* ==================================================== * ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@ -21,6 +21,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#include <sys/limits.h> #include <sys/limits.h>
__BEGIN_DECLS
/* /*
* ANSI/POSIX * ANSI/POSIX
*/ */
@ -145,7 +146,6 @@ extern int signgam;
#define HUGE MAXFLOAT #define HUGE MAXFLOAT
#endif /* __BSD_VISIBLE */ #endif /* __BSD_VISIBLE */
__BEGIN_DECLS
/* /*
* ANSI/POSIX * ANSI/POSIX
*/ */


Loading…
Cancel
Save