Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export OS

ifeq (freebsd,$(OS))
SHELL=/usr/local/bin/bash
else ifeq (netbsd,$(OS))
SHELL=/usr/pkg/bin/bash
else ifeq (dragonflybsd,$(OS))
SHELL=/usr/local/bin/bash
else
SHELL=/bin/bash
endif
Expand Down
11 changes: 11 additions & 0 deletions runnable/dhry.d
Original file line number Diff line number Diff line change
Expand Up @@ -909,3 +909,14 @@ version (OSX) // supplied by Anders F Bjorklund
}
}

version (DragonFlyBSD)
{
import core.stdc.time;

double dtime()
{
double q;
q = cast(double)time(null);
return q;
}
}
6 changes: 3 additions & 3 deletions runnable/extra-files/cppb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ size_t getoffset13161a()

/****************************************************/

#if __linux__ || __APPLE__ || __FreeBSD__
#if __linux__ || __APPLE__ || __FreeBSD__ || __DragonFly__
#include <memory>
#include <vector>
#include <string>
Expand Down Expand Up @@ -402,7 +402,7 @@ wchar_t f13289_cpp_wchar_t(wchar_t ch)
}
}

#if __linux__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __sun
#if __linux__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __DragonFly__ || __sun
unsigned short f13289_d_wchar(unsigned short ch);
wchar_t f13289_d_dchar(wchar_t ch);
#elif _WIN32
Expand All @@ -412,7 +412,7 @@ unsigned int f13289_d_dchar(unsigned int ch);

bool f13289_cpp_test()
{
#if __linux__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __sun
#if __linux__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __DragonFly__ || __sun
if (!(f13289_d_wchar((unsigned short)'c') == (unsigned short)'C')) return false;
if (!(f13289_d_wchar((unsigned short)'D') == (unsigned short)'D')) return false;
if (!(f13289_d_dchar(L'e') == L'E')) return false;
Expand Down