From owner-freebsd-current Tue Nov 5 12:30:41 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A231037B401; Tue, 5 Nov 2002 12:30:39 -0800 (PST) Received: from kayak.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id D48D443E3B; Tue, 5 Nov 2002 12:30:38 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from kayak.xcllnt.net (localhost [127.0.0.1]) by kayak.xcllnt.net (8.12.6/8.12.6) with ESMTP id gA5KUa0N099944; Tue, 5 Nov 2002 12:30:37 -0800 (PST) (envelope-from marcel@kayak.xcllnt.net) Received: (from marcel@localhost) by kayak.xcllnt.net (8.12.6/8.12.6/Submit) id gA5KUaZ8099943; Tue, 5 Nov 2002 12:30:36 -0800 (PST) Date: Tue, 5 Nov 2002 12:30:36 -0800 From: Marcel Moolenaar To: Maxime Henrion Cc: Juli Mallett , Patrick Hartling , current@freebsd.org Subject: Re: uuid.h is not C++ safe Message-ID: <20021105123036.A99916@kayak.xcllnt.net> References: <3DC71B56.1050102@137.org> <20021105105813.GD26605@elvis.mu.org> <20021105105927.GE26605@elvis.mu.org> <20021105030419.A19427@FreeBSD.org> <20021105111724.GF26605@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021105111724.GF26605@elvis.mu.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Nov 05, 2002 at 03:17:24AM -0800, Maxime Henrion wrote: > Juli Mallett wrote: > > * De: Maxime Henrion [ Data: 2002-11-05 ] > > [ Subjecte: Re: uuid.h is not C++ safe ] > > > Maxime Henrion wrote: > > > > Patrick Hartling wrote: > > > > > I was just about to put the new DCE 1.1 UUID functions into use in some > > > > > C++ code, but linking fails because the function prototypes in uuid.h > > > > > are not protected with the __cplusplus/extern "C" bits. It's easy > > > > > enough for me to fix my local copy, but I'm sure this same thing could > > > > > trip up other people. > > > > > > > > This should be fixed with the attached patch. Marcel, can you review > > > > and commit it please ? > > > > Oops, I probably should have pinged Marcel about this, now that I think > > about it, but anyway, it shouldn't change anything. Even with vanilla > > cpp(1) both produce the right thing, with or without __cplusplus defined, > > and both produce the identical thing (moins linenos/whitespace) in the > > C case. > > > > Of course, both and needed changed, as both > > define protos, and is included into . > > That's arguably bad, sys/uuid.h shouldn't have any !_KERNEL prototypes > in it. If there's a better place, then we should move it. We could put it in , but I don't want to make that header a requirement if one only uses the syscall. I don't yet know what a good place would be, if not . Suggestions? -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message