Skip to content

Commit 57e2ef8

Browse files
committed
support for building asm in the unix buildsys.
Also, when ZEND_ACCONFIG_H_NO_C_PROTOS is defined, omit the C prototypes from the configuration header so that it can be included into asm files.
1 parent 686281d commit 57e2ef8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Zend/acconfig.h

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
@BOTTOM@
3838
#endif
3939

40+
#ifndef ZEND_ACCONFIG_H_NO_C_PROTOS
41+
4042
#ifdef HAVE_STDLIB_H
4143
# include <stdlib.h>
4244
#endif
@@ -96,6 +98,8 @@ int zend_sprintf(char *buffer, const char *format, ...);
9698
#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1)
9799
#endif
98100

101+
#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
102+
99103
/*
100104
* Local variables:
101105
* tab-width: 4

acinclude.m4

+2
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ dnl append to the array which has been dynamically chosen at m4 time
130130
dnl choose the right compiler/flags/etc. for the source-file
131131
case $ac_src in
132132
*.c[)] ac_comp="$b_c_pre $3 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $6$b_c_post" ;;
133+
*.s[)] ac_comp="$b_c_pre $3 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $6$b_c_post" ;;
134+
*.S[)] ac_comp="$b_c_pre $3 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $6$b_c_post" ;;
133135
*.cpp[)] ac_comp="$b_cxx_pre $3 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $6$b_cxx_post" ;;
134136
esac
135137

0 commit comments

Comments
 (0)