Skip to content

Enable C11/C++11 #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2015
Merged

Enable C11/C++11 #19

merged 1 commit into from
Jul 17, 2015

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Jul 17, 2015

See arduino/Arduino#2175

Quoting the original commits from Matthijs Kooijman:

Enable C++11 support

This uses the gnu++11 standard, which is C++11 with GNU extensions.
C++11 should be full compatible with the previously used C++98
standards, so all pre-existing sketches should continue to work.

Enable C11 support

This uses the gnu11 standard, which is C11 with GNU extensions.
Previously, gnu89 was being used, which is pretty ancient by now. C99
brings some important improvements, some of which were already available
and used even without this option. C11 is more recent and brings more
minor improvements. Most notable feature is the static_assert statement,
allowing checking invariants at compiletime using the full C
expressions.

/cc @matthijskooijman @Chris--A

See arduino/Arduino#2175

Quoting the original commits from Matthijs Kooijman:

    Enable C++11 support

    This uses the gnu++11 standard, which is C++11 with GNU extensions.
    C++11 should be full compatible with the previously used C++98
    standards, so all pre-existing sketches should continue to work.

    Enable C11 support

    This uses the gnu11 standard, which is C11 with GNU extensions.
    Previously, gnu89 was being used, which is pretty ancient by now. C99
    brings some important improvements, some of which were already available
    and used even without this option. C11 is more recent and brings more
    minor improvements. Most notable feature is the static_assert statement,
    allowing checking invariants at compiletime using the full C
    expressions.
@cmaglie cmaglie self-assigned this Jul 17, 2015
@ArduinoBot
Copy link

✅ Build completed.

⬇️ Build URL: http://downloads.arduino.cc/PR/samd/package_samd-b19_index.json

ℹ️ To test this build:

  1. Open the Preferences of the Arduino IDE.
  2. Add the Build URL above in the Additional Boards Manager URLs field, and click OK.
  3. Open the Boards Manager (menu Tools->Board->Board Manager...)
  4. Install Arduino SAMD core - Pull Request Enable C11/C++11 #19
  5. Select one of the boards under SAMD Pull Request Enable C11/C++11 #19 in Tools->Board menu
  6. Compile/Upload as usual

@cmaglie cmaglie merged commit 1f09fc9 into arduino:master Jul 17, 2015
@cmaglie cmaglie deleted the cxx11 branch July 18, 2015 18:37
@cmaglie cmaglie added this to the Release 1.6.1 milestone Jul 18, 2015
@cmaglie cmaglie modified the milestone: Release 1.6.1 Jul 18, 2015
bxparks pushed a commit to bxparks/ArduinoCore-samd that referenced this pull request Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants