GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add support for gcc <= 4.6 · kyku/libhttpserver@195d2da

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/httpserver/details
    • http_response_ptr.hpp
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/httpserver/details/http_response_ptr.hpp‎

Copy file name to clipboardExpand all lines: src/httpserver/details/http_response_ptr.hpp
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,22 @@
3535
#define atomic_decrement(object) \
3636
__c11_atomic_sub_fetch(object, 1, __ATOMIC_ACQ_REL)
3737

38-
#else
38+
#elif defined(__GNUC_ATOMICS)
3939

4040
#define atomic_increment(object) \
4141
__atomic_add_fetch(object, 1, __ATOMIC_RELAXED)
4242

4343
#define atomic_decrement(object) \
4444
__atomic_sub_fetch(object, 1, __ATOMIC_ACQ_REL)
4545

46+
#else
47+
48+
#define atomic_increment(object) \
49+
__sync_add_and_fetch(object, 1)
50+
51+
#define atomic_decrement(object) \
52+
__sync_sub_and_fetch(object, 1)
53+
4654
#endif
4755

4856
namespace httpserver

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.