Typo macro name on FreeBSD?

Started by Japin Liabout 3 years ago3 messages
#1Japin Li
japinli@hotmail.com

Hi, hackers

Recently, I compile PostgreSQL on FreeBSD, I find commit a2a8acd152 introduecs
__freebsd__ macro, however, I cannot find this macro on FreeBSD 13. There only
has __FreeBSD__ macro. Is this a typo?

root@freebsd:~ # uname -a
FreeBSD freebsd 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64
root@freebsd:~ # echo | gcc10 -dM -E - | grep -i 'freebsd'
#define __FreeBSD__ 13

--
Regrads,
Japin Li.
ChengDu WenWu Information Technology Co.,Ltd.

#2Thomas Munro
thomas.munro@gmail.com
In reply to: Japin Li (#1)
Re: Typo macro name on FreeBSD?

On Fri, Dec 16, 2022 at 4:44 PM Japin Li <japinli@hotmail.com> wrote:

Recently, I compile PostgreSQL on FreeBSD, I find commit a2a8acd152 introduecs
__freebsd__ macro, however, I cannot find this macro on FreeBSD 13. There only
has __FreeBSD__ macro. Is this a typo?

Yeah, that seems to be my fault. Will fix. Thanks!

#3Japin Li
japinli@hotmail.com
In reply to: Thomas Munro (#2)
Re: Typo macro name on FreeBSD?

On Fri, 16 Dec 2022 at 12:25, Thomas Munro <thomas.munro@gmail.com> wrote:

On Fri, Dec 16, 2022 at 4:44 PM Japin Li <japinli@hotmail.com> wrote:

Recently, I compile PostgreSQL on FreeBSD, I find commit a2a8acd152 introduecs
__freebsd__ macro, however, I cannot find this macro on FreeBSD 13. There only
has __FreeBSD__ macro. Is this a typo?

Yeah, that seems to be my fault. Will fix. Thanks!

Thanks!

--
Regrads,
Japin Li.
ChengDu WenWu Information Technology Co.,Ltd.